Lines Matching refs:array_find
2 Test array_find() function : basic functionality
27 var_dump(array_find($array1, fn($value) => $value > 3));
28 var_dump(array_find($array2, fn($value) => $value > 3));
29 var_dump(array_find($array2, fn($value) => $value > 5));
30 var_dump(array_find([], fn($value) => true));
31 var_dump(array_find($array1, fn($value, $key) => $key === "c"));
32 var_dump(array_find($array1, fn($value, $key) => false));
36 var_dump(array_find($array1, function ($value) {
49 var_dump(array_find($array2, function ($value) {
62 var_dump(array_find($array1, 'even'));
64 var_dump(array_find($array1, function($value) {
68 var_dump(array_find($array1, [
73 var_dump(array_find($array1, "EvenClass::even"));