/PHP-7.3/ext/standard/tests/array/ |
H A D | array_filter.phpt | 2 basic array_filter test 20 var_dump(array_filter($array1, "odd")); 21 var_dump(array_filter($array2, "odd")); 22 var_dump(array_filter($array3, "odd")); 24 var_dump(array_filter($array1, "even")); 25 var_dump(array_filter($array2, "even")); 26 var_dump(array_filter($array3, "even")); 28 var_dump(array_filter(array())); 29 var_dump(array_filter(array(), array())); 30 var_dump(array_filter("", null)); [all …]
|
H A D | array_filter_error.phpt | 2 Test array_filter() function : error conditions 5 /* Prototype : array array_filter(array $input [, callback $callback]) 10 echo "*** Testing array_filter() : error conditions ***\n"; 13 echo "-- Testing array_filter() function with Zero arguments --"; 14 var_dump( array_filter() ); 31 var_dump( array_filter($input, "odd", $extra_arg, $extra_arg) ); 34 echo "-- Testing array_filter() function with incorrect callback --"; 35 var_dump( array_filter($input, "even") ); 40 *** Testing array_filter() : error conditions *** 41 -- Testing array_filter() function with Zero arguments -- [all …]
|
H A D | array_filter_variation10.phpt | 2 Test array_filter() function : usage variations - using the array keys inside 'callback' 14 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n"; 24 var_dump( array_filter($input, 'dump', true) ); 33 var_dump( array_filter($input, 'dump2', true) ); 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' *** [all …]
|
H A D | array_filter_variation1.phpt | 2 Test array_filter() function : usage variations - Unexpected values for 'input' argument 5 /* Prototype : array array_filter(array $input [, callback $callback]) 12 echo "*** Testing array_filter() : usage variations - unexpected values for 'input'***\n"; 93 var_dump( array_filter($input_values[$count],"always_true") ); 102 *** Testing array_filter() : usage variations - unexpected values for 'input'*** 105 Warning: array_filter() expects parameter 1 to be array, int given in %s on line %d 109 Warning: array_filter() expects parameter 1 to be array, int given in %s on line %d 113 Warning: array_filter() expects parameter 1 to be array, int given in %s on line %d 117 Warning: array_filter() expects parameter 1 to be array, int given in %s on line %d 141 Warning: array_filter() expects parameter 1 to be array, null given in %s on line %d [all …]
|
H A D | array_filter_variation9.phpt | 2 Test array_filter() function : usage variations - built-in functions as 'callback' argument 5 /* Prototype : array array_filter(array $input [, callback $callback]) 14 echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***… 19 var_dump( array_filter($input, 'is_int') ); 22 var_dump( array_filter($input, 'chr') ); 25 var_dump( array_filter($input, 'echo') ); 28 var_dump( array_filter($input, 'exit') ); 33 *** Testing array_filter() : usage variations - built-in functions as 'callback' argument *** 67 Warning: array_filter() expects parameter 2 to be a valid callback, function 'echo' not found or in… 70 Warning: array_filter() expects parameter 2 to be a valid callback, function 'exit' not found or in…
|
H A D | array_filter_variation2.phpt | 2 Test array_filter() function : usage variations - Unexpected values for 'callback' function argument 5 /* Prototype : array array_filter(array $input [, callback $callback]) 12 echo "*** Testing array_filter() : usage variations - unexpected values for 'callback' function***\… 90 var_dump( array_filter($input, $values[$count]) ); 99 *** Testing array_filter() : usage variations - unexpected values for 'callback' function*** 101 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in %s … 104 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in %s … 107 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in %s … 110 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in %s … 113 Warning: array_filter() expects parameter 2 to be a valid callback, no array or string given in %s … [all …]
|
H A D | array_filter_variation5.phpt | 2 Test array_filter() function : usage variations - 'input' argument with different false entries 5 /* Prototype : array array_filter(array $input [, callback $callback]) 11 * With default callback function argument, array_filter() removes elements which are interpreted as… 27 echo "*** Testing array_filter() : usage variations - different false elements in 'input' ***\n"; 58 var_dump( array_filter($input) ); 61 var_dump( array_filter($input, 'always_true') ); 64 var_dump( array_filter($input, 'always_false') ); 69 *** Testing array_filter() : usage variations - different false elements in 'input' ***
|
H A D | array_filter_variation8.phpt | 2 Test array_filter() function : usage variations - Callback function with different return values 5 /* Prototype : array array_filter(array $input [, callback $callback]) 11 * callback functions are expected to return bool value for array_filter() 15 echo "*** Testing array_filter() : usage variations - callback function with different return value… 26 var_dump( array_filter($input, 'callback1') ); 34 var_dump( array_filter($input, 'callback2') ); 42 var_dump( array_filter($input, 'callback3') ); 50 var_dump( array_filter($input, 'callback4') ); 58 var_dump( array_filter($input, 'callback5') ); 63 *** Testing array_filter() : usage variations - callback function with different return values***
|
H A D | array_filter_variation4.phpt | 2 Test array_filter() function : usage variations - Different types of 'callback' function 5 /* Prototype : array array_filter(array $input [, callback $callback]) 11 * Passing different types of callback functions to array_filter() 18 echo "*** Testing array_filter() : usage variation - different 'callback' functions***\n"; 29 var_dump( array_filter($input, "callback1") ); 36 var_dump( array_filter($input, "callback2") ); 44 var_dump( array_filter($input, "callback3") ); 57 var_dump( array_filter($input, "callback4") ); 62 *** Testing array_filter() : usage variation - different 'callback' functions***
|
H A D | array_filter_variation7.phpt | 2 Test array_filter() function : usage variations - anonymous callback functions 5 /* Prototype : array array_filter(array $input [, callback $callback]) 14 echo "*** Testing array_filter() : usage variations - Anonymous callback functions ***\n"; 20 var_dump( array_filter($input, function($input) { return ($input > 1); }) ); 24 var_dump( array_filter($input, function(&$input) { return ($input < 1); }) ); 28 var_dump( array_filter($input, function() { return true; }) ); 32 var_dump( array_filter($input, function($input) { }) ); 37 *** Testing array_filter() : usage variations - Anonymous callback functions ***
|
H A D | array_filter_basic.phpt | 2 Test array_filter() function : basic functionality 5 /* Prototype : array array_filter(array $input [, callback $callback]) 11 echo "*** Testing array_filter() : basic functionality ***\n"; 30 var_dump( array_filter($input,"even") ); 33 var_dump( array_filter($input) ); 38 *** Testing array_filter() : basic functionality ***
|
H A D | array_filter_variation6.phpt | 2 Test array_filter() function : usage variations - 'input' array containing references 5 /* Prototype : array array_filter(array $input [, callback $callback]) 14 echo "*** Testing array_filter() : usage variations - 'input' containing references ***\n"; 39 var_dump( array_filter($input, 'callback') ); 42 var_dump( array_filter($input) ); 47 *** Testing array_filter() : usage variations - 'input' containing references ***
|
H A D | array_filter_object.phpt | 2 Test array_filter() function : object functionality 5 /* Prototype : array array_filter(array $input [, callback $callback]) 11 * it to array_filter() to test object functionality 18 echo "*** Testing array_filter() : object functionality ***\n"; 91 var_dump( array_filter($input) ); 94 var_dump( array_filter($input, "always_true") ); 97 var_dump( array_filter($input, "always_false") ); 102 *** Testing array_filter() : object functionality ***
|
H A D | array_filter_variation3.phpt | 2 Test array_filter() function : usage variations - Different types of array for 'input' argument 5 /* Prototype : array array_filter(array $input [, callback $callback]) 26 echo "*** Testing array_filter() : usage variations - different types of array for 'input' argument… 45 var_dump( array_filter($input_values[$count]) ); 46 var_dump( array_filter($input_values[$count], 'always_true') ); 47 var_dump( array_filter($input_values[$count], 'always_false') ); 53 *** Testing array_filter() : usage variations - different types of array for 'input' argument***
|
H A D | bug69299.phpt | 2 Bug #69299 (Regression in array_filter's $flag argument in PHP 7) 6 $filtered = array_filter($toFilter, function ($value, $key) {
|
H A D | bug34227.phpt | 2 Bug #34277 (array_filter() crashes with references and objects) 73 $ret = array_filter(array(0), 'f');
|
/PHP-7.3/sapi/cli/tests/ |
H A D | bug64878.phpt | 14 echo count(array_filter($headers, function ($value) {
|
/PHP-7.3/ext/standard/ |
H A D | php_array.h | 100 PHP_FUNCTION(array_filter);
|
H A D | basic_functions.c | 3402 PHP_FE(array_filter, arginfo_array_filter)
|
H A D | array.c | 6010 PHP_FUNCTION(array_filter) argument
|
/PHP-7.3/scripts/dev/ |
H A D | find_tested.php | 211 $functions = array_filter($tokens, 'filter_functions');
|
/PHP-7.3/ext/standard/tests/strings/ |
H A D | setlocale_variation2.phpt | 49 return array_filter($system_locales, 'good_locale');
|