Home
last modified time | relevance | path

Searched refs:array_filter (Results 1 – 25 of 27) sorted by relevance

12

/php-src/ext/standard/tests/array/
H A Darray_filter_variation10.phpt2 Test array_filter() function : usage variations - using the array keys inside 'callback'
9 echo "*** Testing array_filter() : usage variations - using array keys in 'callback' ***\n";
19 var_dump( array_filter($input, 'dump', true) );
28 var_dump( array_filter($input, 'dump2', true) );
33 var_dump( array_filter($small, 'dump', false) );
38 echo "*** Testing array_filter() with various use types ***\n";
42 var_dump(array_filter($mixed, 'is_numeric', ARRAY_FILTER_USE_KEY));
44 var_dump(array_filter($mixed, 'is_numeric', 0));
47 var_dump(array_filter($mixed, 'is_numeric', ARRAY_FILTER_USE_BOTH));
55 *** Testing array_filter() : usage variations - using array keys in 'callback' ***
[all …]
H A Darray_filter.phpt2 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()));
H A Darray_filter_variation9.phpt2 Test array_filter() function : usage variations - built-in functions as 'callback' argument
9 echo "*** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***…
14 var_dump( array_filter($input, 'is_int') );
17 var_dump( array_filter($input, 'chr') );
21 var_dump( array_filter($input, 'echo') );
28 var_dump( array_filter($input, 'isset') );
36 *** Testing array_filter() : usage variations - built-in functions as 'callback' argument ***
65 array_filter(): Argument #2 ($callback) must be a valid callback or null, function "echo" not found…
66 array_filter(): Argument #2 ($callback) must be a valid callback or null, function "isset" not foun…
H A Darray_filter_basic.phpt2 Test array_filter() function : basic functionality
5 echo "*** Testing array_filter() : basic functionality ***\n";
17 var_dump( array_filter($input,"even") );
20 var_dump( array_filter($input) );
22 var_dump( array_filter($input, null) );
27 *** Testing array_filter() : basic functionality ***
H A Darray_filter_variation5.phpt2 Test array_filter() function : usage variations - 'input' argument with different false entries
6 * With default callback function argument, array_filter() removes elements which are interpreted as…
21 echo "*** Testing array_filter() : usage variations - different false elements in 'input' ***\n";
52 var_dump( array_filter($input) );
55 var_dump( array_filter($input, 'always_true') );
58 var_dump( array_filter($input, 'always_false') );
63 *** Testing array_filter() : usage variations - different false elements in 'input' ***
H A Darray_filter_variation8.phpt2 Test array_filter() function : usage variations - Callback function with different return values
6 * callback functions are expected to return bool value for array_filter()
10 echo "*** Testing array_filter() : usage variations - callback function with different return value…
19 var_dump( array_filter($input, 'callback1') );
27 var_dump( array_filter($input, 'callback2') );
35 var_dump( array_filter($input, 'callback3') );
43 var_dump( array_filter($input, 'callback4') );
51 var_dump( array_filter($input, 'callback5') );
56 *** Testing array_filter() : usage variations - callback function with different return values***
H A Darray_filter_variation4.phpt2 Test array_filter() function : usage variations - Different types of 'callback' function
6 * Passing different types of callback functions to array_filter()
13 echo "*** Testing array_filter() : usage variation - different 'callback' functions***\n";
23 var_dump( array_filter($input, "callback1") );
30 var_dump( array_filter($input, "callback2") );
36 var_dump( array_filter($input, "callback3") );
49 var_dump( array_filter($input, "callback4") );
54 *** Testing array_filter() : usage variation - different 'callback' functions***
H A Darray_filter_variation6.phpt2 Test array_filter() function : usage variations - 'input' array containing references
9 echo "*** Testing array_filter() : usage variations - 'input' containing references ***\n";
27 var_dump( array_filter($input, 'callback') );
30 var_dump( array_filter($input) );
35 *** Testing array_filter() : usage variations - 'input' containing references ***
H A Darray_filter_variation7.phpt2 Test array_filter() function : usage variations - anonymous callback functions
9 echo "*** Testing array_filter() : usage variations - Anonymous callback functions ***\n";
15 var_dump( array_filter($input, function($input) { return ($input > 1); }) );
19 var_dump( array_filter($input, function() { return true; }) );
23 var_dump( array_filter($input, function($input) { }) );
28 *** Testing array_filter() : usage variations - Anonymous callback functions ***
H A Darray_filter_object.phpt2 Test array_filter() function : object functionality
6 * it to array_filter() to test object functionality
13 echo "*** Testing array_filter() : object functionality ***\n";
85 var_dump( array_filter($input) );
88 var_dump( array_filter($input, "always_true") );
91 var_dump( array_filter($input, "always_false") );
96 *** Testing array_filter() : object functionality ***
H A Darray_filter_variation3.phpt2 Test array_filter() function : usage variations - Different types of array for 'input' argument
20 echo "*** Testing array_filter() : usage variations - different types of array for 'input' argument…
39 var_dump( array_filter($input_values[$count]) );
40 var_dump( array_filter($input_values[$count], 'always_true') );
41 var_dump( array_filter($input_values[$count], 'always_false') );
47 *** Testing array_filter() : usage variations - different types of array for 'input' argument***
H A Dbug69299.phpt2 Bug #69299 (Regression in array_filter's $flag argument in PHP 7)
6 $filtered = array_filter($toFilter, function ($value, $key) {
H A Dbug34227.phpt2 Bug #34277 (array_filter() crashes with references and objects)
73 $ret = array_filter(array(0), 'f');
H A Dbug74345.phpt26 array_filter([], $cb);
/php-src/Zend/tests/
H A Dfake_closure_in_internal_func_leaks.phpt7 var_dump(array_filter([[]], $c));
H A Dgh14003.phpt10 array_filter(
/php-src/sapi/cli/tests/
H A Dbug64878.phpt14 echo count(array_filter($headers, function ($value) {
/php-src/ext/opcache/tests/jit/
H A Dgh15821.phpt14 $allInternalFunctions = array_filter($allInternalFunctions, function($func) {
/php-src/scripts/dev/
H A Dfind_tested.php208 $functions = array_filter($tokens, 'filter_functions');
/php-src/ext/standard/tests/strings/
H A Dsetlocale_variation2.phpt41 return array_filter($system_locales, 'good_locale');
/php-src/ext/mbstring/tests/
H A Dgb18030_encoding.phpt247 $invalid = array_filter($invalid, 'notFourByteCode', ARRAY_FILTER_USE_KEY);
248 $truncated = array_filter($truncated, 'notFourByteCode', ARRAY_FILTER_USE_KEY);
H A Dgb18030_2022_encoding.phpt248 $invalid = array_filter($invalid, 'notFourByteCode', ARRAY_FILTER_USE_KEY);
249 $truncated = array_filter($truncated, 'notFourByteCode', ARRAY_FILTER_USE_KEY);
/php-src/sapi/fpm/tests/
H A Dtester.inc474 $missingPatterns = array_filter($expectedPatterns);
736 return array_filter($params, function ($value) {
/php-src/ext/standard/
H A Dbasic_functions.stub.php1878 function array_filter(array $array, ?callable $callback = null, int $mode = 0): array {} function
H A Dbasic_functions_arginfo.h2382 ZEND_FUNCTION(array_filter);
2975 ZEND_FE(array_filter, arginfo_array_filter)

Completed in 57 milliseconds

12