Home
last modified time | relevance | path

Searched refs:array_reverse (Results 1 – 15 of 15) sorted by relevance

/PHP-5.6/ext/standard/tests/array/
H A Darray_reverse_variation1.phpt2 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) );
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
198 Warning: array_reverse() expects parameter 1 to be array, null given in %s on line %d
202 Warning: array_reverse() expects parameter 1 to be array, null given in %s on line %d
205 Warning: array_reverse() expects parameter 1 to be array, null given in %s on line %d
[all …]
H A Darray_reverse_error.phpt2 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 Darray_reverse_basic1.phpt2 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 Darray_reverse_basic2.phpt2 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 Darray_reverse_variation6.phpt2 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 Darray_reverse_variation2.phpt2 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 Dbug33382.phpt2 Bug #33382 (array_reverse() fails after *sort() )
10 var_dump(array_reverse($array));
H A Darray_reverse_variation4.phpt2 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 Darray_reverse_variation5.phpt2 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 Darray_reverse_variation3.phpt2 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-5.6/Zend/tests/
H A Dbug64988.phpt7 return array_reverse($data);
/PHP-5.6/ext/standard/
H A Dphp_array.h75 PHP_FUNCTION(array_reverse);
H A Darray.c2514 PHP_FUNCTION(array_reverse) in PHP_FUNCTION() argument
H A Dbasic_functions.c3306 PHP_FE(array_reverse, arginfo_array_reverse)
/PHP-5.6/
H A DNEWS11076 - Fixed bug #33382 (array_reverse() fails after *sort()), introduced by

Completed in 148 milliseconds