Lines Matching refs:array_filter
2 Test array_filter() function : usage variations - using the array keys inside 'callback'
5 /* Prototype : array array_filter(array $input [, callback $callback [, bool $use_type = ARRAY_FIL…
14 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n";
24 var_dump( array_filter($input, 'dump', true) );
26 echo "*** Testing array_filter() : usage variations - 'callback' filters based on key value ***\n";
33 var_dump( array_filter($input, 'dump2', true) );
35 echo "*** Testing array_filter() : usage variations - 'callback' expecting second argument ***\n";
38 var_dump( array_filter($small, 'dump', false) );
43 echo "*** Testing array_filter() with various use types ***\n";
47 var_dump(array_filter($mixed, 'is_numeric', ARRAY_FILTER_USE_KEY));
49 var_dump(array_filter($mixed, 'is_numeric', 0));
51 var_dump(array_filter($mixed, 'is_numeric', ARRAY_FILTER_USE_BOTH));
56 *** Testing array_filter() : usage variations - using array keys in 'callback' ***
67 *** Testing array_filter() : usage variations - 'callback' filters based on key value ***
76 *** Testing array_filter() : usage variations - 'callback' expecting second argument ***
78 *** Testing array_filter() with various use types ***