Finding
find
Definition
Description
Find array (or iterable object) element(s) that match specified condition.
Modes ($return
method argument)
$return
method argument)Constant name
Description
FIND_RETURN_VALUE
Return first value of an array that match find condition
FIND_RETURN_KEY
Return first key of an array that match find condition
FIND_RETURN_ALL
Return array of all values (preserving original keys) that match find condition
Examples
Last updated