1 | <?php |
||
11 | trait AnyTrait |
||
12 | { |
||
13 | /** |
||
14 | * Returns true when one or more element of this iterable is not empty, otherwise returns false |
||
15 | * |
||
16 | * When the optional $STRATEGY argument is given, this argument is used to obtain the |
||
17 | * value which is tested to be empty. |
||
18 | * |
||
19 | * > any([0, '', false]) |
||
20 | * false |
||
21 | * |
||
22 | * > any([1, null, 3]) |
||
23 | * true |
||
24 | * |
||
25 | * @param \Closure $strategy Optional, when not specified !empty will be used |
||
26 | * @return bool |
||
27 | */ |
||
28 | 1 | public function any($strategy = null) |
|
32 | } |
||
33 |