some()
The some() method tests whether least one element pass the function
Example.php
Syntax
Parameter
$callback
A function to test for each element, taking three arguments:
$value
The current element being processed in the array.$key
The index of the current element being processed in the array.$array
The arrayevery
was called upon.
Return value
A
boolean
the whether any elements pass the function
Prefixing
References
Last updated