Searched refs:array_reverse (Results 1 – 15 of 15) sorted by relevance
/PHP-7.2/ext/standard/tests/array/ |
H A D | array_reverse_variation1.phpt | 2 Test array_reverse() function : usage variations - unexpected values for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 86 var_dump( array_reverse($array) ); 88 var_dump( array_reverse($array, true) ); 89 var_dump( array_reverse($array, false) ); 142 Warning: array_reverse() expects parameter 1 to be array, float given in %s on line %d 145 Warning: array_reverse() expects parameter 1 to be array, float given in %s on line %d 148 Warning: array_reverse() expects parameter 1 to be array, float given in %s on line %d 192 Warning: array_reverse() expects parameter 1 to be array, null given in %s on line %d 195 Warning: array_reverse() expects parameter 1 to be array, null given in %s on line %d [all …]
|
H A D | array_reverse_error.phpt | 2 Test array_reverse() function : error conditions 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 10 echo "*** Testing array_reverse() : error conditions ***\n"; 13 echo "\n-- Testing array_reverse() function with Zero arguments --\n"; 14 var_dump( array_reverse() ); 20 var_dump( array_reverse($array, true, $extra_arg) ); 21 var_dump( array_reverse($array, false, $extra_arg) ); 26 *** Testing array_reverse() : error conditions *** 28 -- Testing array_reverse() function with Zero arguments -- 30 Warning: array_reverse() expects at least 1 parameter, 0 given in %s on line %d [all …]
|
H A D | array_reverse_basic1.phpt | 2 Test array_reverse() function : basic functionality - simple array for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 11 * Testing array_reverse() by giving a simple array for $array argument 14 echo "*** Testing array_reverse() : basic functionality ***\n"; 19 // Calling array_reverse() with default arguments 20 var_dump( array_reverse($array) ); 22 // Calling array_reverse() with all possible arguments 23 var_dump( array_reverse($array, true) ); // expects the keys to be preserved 24 var_dump( array_reverse($array, false) ); // expects the keys not to be preserved 29 *** Testing array_reverse() : basic functionality ***
|
H A D | array_reverse_basic2.phpt | 2 Test array_reverse() function : basic functionality - associative array for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 11 * Testing array_reverse() with associative array for $array argument 14 echo "*** Testing array_reverse() : basic functionality ***\n"; 19 // Calling array_reverse() with default arguments 20 var_dump( array_reverse($array) ); 22 // Calling array_reverse() with all possible arguments 23 var_dump( array_reverse($array, true) ); // expects the keys to be preserved 24 var_dump( array_reverse($array, false) ); // expects the keys not to be preserved 29 *** Testing array_reverse() : basic functionality ***
|
H A D | array_reverse_variation6.phpt | 2 Test array_reverse() function : usage variations - two dimensional arrays for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 14 echo "*** Testing array_reverse() : usage variations ***\n"; 29 // calling array_reverse() with various types of 2-d arrays 32 var_dump( array_reverse($two_dimensional_array) ); // whole array 33 var_dump( array_reverse($two_dimensional_array[1]) ); // sub array 38 var_dump( array_reverse($two_dimensional_array, true) ); 39 var_dump( array_reverse($two_dimensional_array, false) ); 41 var_dump( array_reverse($two_dimensional_array[1], true) ); 42 var_dump( array_reverse($two_dimensional_array[1], false) ); [all …]
|
H A D | array_reverse_variation2.phpt | 2 Test array_reverse() function : usage variations - unexpected values for 'preserve_keys' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 14 echo "*** Testing array_reverse() : usage variations ***\n"; 90 var_dump( array_reverse($array, $preserve_key) ); 100 *** Testing array_reverse() : usage variations *** 238 Warning: array_reverse() expects parameter 2 to be boolean, array given in %s on line %d 242 Warning: array_reverse() expects parameter 2 to be boolean, array given in %s on line %d 246 Warning: array_reverse() expects parameter 2 to be boolean, array given in %s on line %d 250 Warning: array_reverse() expects parameter 2 to be boolean, array given in %s on line %d 254 Warning: array_reverse() expects parameter 2 to be boolean, array given in %s on line %d [all …]
|
H A D | bug33382.phpt | 2 Bug #33382 (array_reverse() fails after *sort() ) 10 var_dump(array_reverse($array));
|
H A D | array_reverse_variation4.phpt | 2 Test array_reverse() function : usage variations - assoc. array with diff. keys for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 11 * Testing the functionality of array_reverse() by giving associative arrays with different 15 echo "*** Testing array_reverse() : usage variations ***\n"; 63 // loop through the various elements of $arrays to test array_reverse() 69 var_dump( array_reverse($array) ); 72 var_dump( array_reverse($array, true) ); 74 var_dump( array_reverse($array, false) ); 84 *** Testing array_reverse() : usage variations ***
|
H A D | array_reverse_variation5.phpt | 2 Test array_reverse() function : usage variations - assoc. array with diff. value for 'array' argume… 7 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 13 * Testing the functionality of array_reverse() by giving associative arrays with different 17 echo "*** Testing array_reverse() : usage variations ***\n"; 66 // loop through the various elements of $arrays to test array_reverse() 72 var_dump( array_reverse($array) ); 75 var_dump( array_reverse($array, true) ); 77 var_dump( array_reverse($array, false) ); 87 *** Testing array_reverse() : usage variations ***
|
H A D | array_reverse_variation3.phpt | 2 Test array_reverse() function : usage variations - different array values for 'array' argument 5 /* Prototype : array array_reverse(array $array [, bool $preserve_keys]) 11 * Testing the functionality of array_reverse() by giving 15 echo "*** Testing array_reverse() : usage variations ***\n"; 64 // loop through the various elements of $arrays to test array_reverse() 70 var_dump( array_reverse($array) ); 73 var_dump( array_reverse($array, true) ); 75 var_dump( array_reverse($array, false) ); 85 *** Testing array_reverse() : usage variations ***
|
/PHP-7.2/Zend/tests/ |
H A D | foreach_reference.phpt | 16 var_dump(array_reverse($array));
|
H A D | bug64988.phpt | 7 return array_reverse($data);
|
/PHP-7.2/ext/standard/ |
H A D | php_array.h | 75 PHP_FUNCTION(array_reverse);
|
H A D | basic_functions.c | 3348 PHP_FE(array_reverse, arginfo_array_reverse)
|
H A D | array.c | 4261 PHP_FUNCTION(array_reverse) argument
|
Completed in 41 milliseconds