Home
last modified time | relevance | path

Searched refs:array_walk (Results 1 – 25 of 44) sorted by relevance

12

/php-src/ext/standard/tests/array/array_walk/
H A Darray_walk_error2.phpt2 Test array_walk() function : error conditions - callback parameters
6 * Testing array_walk() by passing more number of parameters to callback function
17 echo "*** Testing array_walk() : error conditions - callback parameters ***\n";
21 var_dump( array_walk($input, "callback1") );
26 var_dump( array_walk($input, "callback2", 4) );
33 var_dump( @array_walk($input, "callback1") );
38 var_dump( @array_walk($input, "callback2", 4) );
45 var_dump( array_walk($input, "callback1", 20, 10) );
53 *** Testing array_walk() : error conditions - callback parameters ***
58 -- Testing array_walk() function with too many callback parameters --
[all …]
H A Darray_walk_basic2.phpt2 Test array_walk() function : basic functionality - associative array
5 echo "*** Testing array_walk() : basic functionality ***\n";
29 echo "-- Using array_walk with default parameters to show array contents --\n";
30 var_dump(array_walk($fruits, 'test_print'));
32 echo "-- Using array_walk with one optional parameter to modify contents --\n";
33 var_dump (array_walk($fruits, 'test_alter', 'fruit'));
36 var_dump (array_walk($fruits, 'test_print'));
41 *** Testing array_walk() : basic functionality ***
42 -- Using array_walk with default parameters to show array contents --
56 -- Using array_walk with one optional parameter to modify contents --
[all …]
H A Darray_walk_basic1.phpt2 Test array_walk() function : basic functionality - regular array
5 echo "*** Testing array_walk() : basic functionality ***\n";
28 echo "-- Using array_walk() with default parameters to show array contents --\n";
29 var_dump( array_walk($fruits, 'test_print'));
31 echo "-- Using array_walk() with all parameters --\n";
32 var_dump( array_walk($fruits, 'with_userdata', "Added"));
37 *** Testing array_walk() : basic functionality ***
38 -- Using array_walk() with default parameters to show array contents --
52 -- Using array_walk() with all parameters --
H A Darray_walk_variation8.phpt2 Test array_walk() function : usage variations - buit-in function as callback
12 echo "*** Testing array_walk() : built-in function as callback ***\n";
17 var_dump( array_walk($input, 'pow'));
20 var_dump( array_walk($input, "min"));
24 var_dump( array_walk($input, "echo"));
32 *** Testing array_walk() : built-in function as callback ***
38 array_walk(): Argument #2 ($callback) must be a valid callback, function "echo" not found or invali…
H A Darray_walk_objects.phpt2 array_walk() and objects
19 array_walk($stdclass, "walk");
22 array_walk($t, "walk");
25 array_walk($var, "walk");
28 array_walk($var, "walk");
46 array_walk(): Argument #1 ($array) must be of type array, string given
H A Darray_walk_variation7.phpt2 Test array_walk() function : usage variations - anonymous callback function
14 echo "*** Testing array_walk() : anonymous function as callback ***\n";
19 var_dump( array_walk($input, function($value) { var_dump($value); echo "\n"; }));
22 var_dump( array_walk($input, function($value, $key) { var_dump($key); var_dump($value); echo "\n"; …
25 var_dump( array_walk($input, function($value, $key, $user_data) { var_dump($key); var_dump($value);…
28 var_dump( array_walk( $input, function() { echo "1\n"; }));
32 *** Testing array_walk() : anonymous function as callback ***
H A Darray_walk_variation4.phpt2 Test array_walk() function : usage variations - 'input' array with subarray
6 * Testing array_walk() with an array having subarrays as elements
9 echo "*** Testing array_walk() : array with subarray ***\n";
28 var_dump( array_walk( $input, "callback"));
33 *** Testing array_walk() : array with subarray ***
H A Darray_walk_variation5.phpt2 Test array_walk() function : usage variations - 'input' argument containing reference variables
6 * Testing array_walk() with an array having reference variables
9 echo "*** Testing array_walk() : array with references ***\n";
28 var_dump( array_walk($input, "callback"));
33 *** Testing array_walk() : array with references ***
H A Darray_walk_object2.phpt2 Test array_walk() function : object functionality - array of objects
6 * Testing array_walk() with an array of objects
9 echo "*** Testing array_walk() : array of objects ***\n";
60 var_dump( array_walk($input, "callback_private", 1));
62 var_dump( array_walk($input, "callback_public"));
64 var_dump( array_walk($input, "callback_protected"));
69 *** Testing array_walk() : array of objects ***
H A Darray_walk_variation9.phpt2 Test array_walk() function : usage variations - different callback functions
6 * Passing different types of callback functions to array_walk()
11 echo "*** Testing array_walk() : callback function variation ***\n";
24 var_dump( array_walk($input, 'callback_two_parameter'));
34 var_dump( array_walk($input, 'callback_one_parameter'));
41 var_dump( array_walk($input, 'callback_no_parameter'));
44 var_dump( array_walk($input, 'callback_two_parameter', 10));
49 *** Testing array_walk() : callback function variation ***
H A Darray_walk_object1.phpt2 Test array_walk() function : object functionality
9 echo "*** Testing array_walk() : object functionality ***\n";
35 var_dump( array_walk($input, "callback", 1));
40 *** Testing array_walk() : object functionality ***
H A Dbug61730.phpt2 Bug #61730 (Segfault from array_walk modifying an array passed by reference)
7 array_walk(
15 array_walk(
H A Darray_walk_variation3.phpt2 Test array_walk() function : usage variations - 'input' array with different values
6 * Testing array_walk() with following types of 'input' arrays:
15 echo "*** Testing array_walk() : 'input' array with different values***\n";
47 var_dump( array_walk($input_values[$count], "print_value", $count+1));
52 *** Testing array_walk() : 'input' array with different values***
H A Darray_walk.phpt2 array_walk() tests
13 var_dump(array_walk($var, "foo", "data"));
20 var_dump(array_walk($var,"foo2", "data"));
H A Darray_walk_variation6.phpt2 Test array_walk() function : usage variations - 'input' argument as diff. associative arrays
10 echo "*** Testing array_walk() : 'input' as an associative array ***\n";
43 var_dump( array_walk($input, "for_numeric", 10));
48 var_dump( array_walk($input, "for_string"));
53 var_dump( array_walk($input, "for_string"));
58 var_dump( array_walk($input, "for_mixed"));
63 *** Testing array_walk() : 'input' as an associative array ***
H A Darray_walk_closure.phpt2 array_walk() closure tests
7 var_dump(array_walk($ar, function(){ var_dump(func_get_args());}));
17 var_dump(array_walk($ar, $func, $user_data));
29 var_dump(array_walk($ar, $func, $user_data));
42 var_dump(array_walk($ar, $func, $user_data));
58 var_dump(array_walk($ar, "sum_it_up_object", $user_data));
73 var_dump(array_walk($ar, "sum_it_up_array", $user_data));
80 var_dump(array_walk($ar, function($v, $k) { if ($v == 2) throw new Exception; } ));
222 string(10) "array_walk"
H A Dbug69068.phpt2 Bug #69068: Exchanging array during array_walk -> memory errors
7 array_walk($array, function($value, $key) {
H A Dbug69068_2.phpt2 Bug #69068: Exchanging array during array_walk -> memory errors (variation)
8 array_walk($array, function(&$value, $key) use ($array2) {
H A Dbug79839.phpt2 Bug #79839: array_walk() does not respect property types
12 array_walk($test, function(&$ref) {
/php-src/tests/lang/
H A Dbug24658.phpt25 array_walk($a, 'no_typehint');
27 array_walk($a, 'no_typehint_ref');
29 array_walk($a, 'typehint');
31 array_walk($a, 'typehint_ref');
59 #1 %s(%d): array_walk(Array, 'typehint')
/php-src/Zend/tests/
H A Dbug31720.phpt2 Bug #31720 (Invalid object callbacks not caught in array_walk())
8 array_walk($array, array($nonesuchvar,'show'));
15 array_walk(): Argument #2 ($callback) must be a valid callback, first array member is not a valid c…
/php-src/Zend/tests/foreach/
H A Dforeach_012.phpt2 array_walk() function preserve foreach by reference iterator pointer
9 array_walk($a, function (&$x) {$x+=10;});
/php-src/ext/ffi/tests/
H A Dgh9697.phpt2 GH-9697 (array_walk($ffiInstance, function () {}) crashes due to expecting mutable array)
10 array_walk($x, function($x) { echo "test\n"; });
/php-src/ext/standard/tests/array/
H A D001.phpt2 Test array_merge and array_walk
42 echo " -- Testing array_walk() -- \n";
43 array_walk ($data, 'echo_kv');
103 -- Testing array_walk() --
H A Dbug72622.phpt2 Bug #72622 (array_walk + array_replace_recursive create references from nothing)
7 array_walk($arr, function (&$val, $name) {

Completed in 21 milliseconds

12