You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Check if every element of an array meets specified condition
363
342
*
364
343
* @param array $array
365
-
* @param mixed|callable $condition Can be either single value to compare every array value to or callable (which takes value as first argument and key as second) that performs check
366
-
* @param bool $strict In case $condition is callable check if it result is exactly <code>true</code> otherwise if it is equal both by value and type to supplied $condition
344
+
* @param mixed|callable $condition <p>Either callable performing check or a value which every array element will be compared to.</p>
345
+
* <p><b>Callable</b> is supplied with either only element value or pair of element value and key. Arguments amount depends on <b>callable</b> definition and is dynamically resolved using reflection (defaults to 2 - value and key)</p>
346
+
* @param int $flag <p>[optional]</p>
347
+
* <p>Determines how <b>condition</b> is processed (see Arr::CHECK_* constants for more info)</p>
348
+
* <ul>
349
+
* <li><b>CHECK_STRICT</b> - compare using <b>condition</b> by both value and type</li>
350
+
* <li><b>CHECK_SOME</b> - return <tt>true</tt> if any of array elements meet specified <b>condition</b></li>
0 commit comments