array_usearch
Less than 1 minute
array_usearch
Searches the array using a callback function and returns the first corresponding key if successful.
public array_usearch(array $haystack, callable $callback): mixed
Parameters
Parameter | Type | Description |
---|---|---|
$haystack | array | the array |
$callback | callable | The callback function to use. This function should return true if the value matches. |
Generated by Hazaar API Doc Generator