every()
The every() method tests whether all elements 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 all elements pass the function
Prefixing
References
Last updated