Searched refs:rsort (Results 1 – 19 of 19) sorted by relevance
/PHP-5.3/ext/standard/tests/array/ |
H A D | rsort_basic.phpt | 2 Test rsort() function : basic functionality 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Test basic functionality of rsort() 14 echo "*** Testing rsort() : basic functionality ***\n"; 24 var_dump( rsort($temp_array) ); 29 var_dump( rsort($temp_array) ); 34 var_dump( rsort($temp_array, SORT_REGULAR) ); 39 var_dump( rsort($temp_array, SORT_REGULAR) ); 44 var_dump( rsort($temp_array, SORT_STRING) ); 49 var_dump( rsort($temp_array, SORT_NUMERIC) ); [all …]
|
H A D | rsort_error.phpt | 2 Test rsort() function : error conditions - Pass incorrect number of args 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass incorrect number of arguments to rsort() to test behaviour 14 echo "*** Testing rsort() : error conditions ***\n"; 17 echo "\n-- Testing rsort() function with Zero arguments --\n"; 18 var_dump( rsort() ); 20 //Test rsort() with more than the expected number of arguments 25 var_dump( rsort($array_arg, $sort_flags, $extra_arg) ); 34 *** Testing rsort() : error conditions *** 36 -- Testing rsort() function with Zero arguments -- [all …]
|
H A D | rsort_variation1.phpt | 2 Test rsort() function : usage variations - Pass different data types as $array_arg arg 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass different data types as $array_arg argument to rsort() to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 84 // loop through each element of $inputs to check the behavior of rsort() 89 var_dump( rsort($input) ); 91 var_dump( rsort($input, SORT_REGULAR) ); 93 var_dump( rsort($input, SORT_NUMERIC) ); 95 var_dump( rsort($input, SORT_STRING) ); 105 *** Testing rsort() : variation *** [all …]
|
H A D | rsort_variation7.phpt | 2 Test rsort() function : usage variations - boolean values 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() arrays of boolean values to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 21 var_dump(rsort($temp_array) ); 26 var_dump(rsort($temp_array, SORT_REGULAR) ); 31 var_dump(rsort($temp_array, SORT_NUMERIC) ); 36 var_dump(rsort($temp_array, SORT_STRING) ); 43 *** Testing rsort() : variation ***
|
H A D | rsort_variation10.phpt | 2 Test rsort() function : usage variations - Octal values 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() an array containing octal values to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 21 var_dump(rsort($temp_array) ); 26 var_dump(rsort($temp_array, SORT_REGULAR) ); 31 var_dump(rsort($temp_array, SORT_NUMERIC) ); 38 *** Testing rsort() : variation ***
|
H A D | rsort_variation4.phpt | 2 Test rsort() function : usage variations - referenced variables 7 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 13 * Test behaviour of rsort() when: 19 echo "*** Testing rsort() : variation ***\n"; 30 var_dump( rsort($temp_array) ); 35 var_dump( rsort($temp_array, SORT_REGULAR) ); 40 var_dump( rsort(&$temp_array, SORT_NUMERIC) ); 46 *** Testing rsort() : variation ***
|
H A D | rsort_variation6.phpt | 2 Test rsort() function : usage variations - Hexadecimal vales 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() an array of hexadecimal values to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 21 var_dump(rsort($temp_array) ); 26 var_dump(rsort($temp_array, SORT_REGULAR) ); 31 var_dump(rsort($temp_array, SORT_NUMERIC) ); 38 *** Testing rsort() : variation ***
|
H A D | rsort_object1.phpt | 2 Test rsort() function : object functionality 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Test basic functionality of rsort() with objects 14 echo "*** Testing rsort() : object functionality ***\n"; 61 // testing rsort() function by supplying integer object array, flag value is defualt 63 var_dump(rsort($temp_array) ); 66 // testing rsort() function by supplying string object array, flag value is defualt 68 var_dump(rsort($temp_array) ); 74 var_dump(rsort($temp_array, SORT_REGULAR) ); 79 var_dump(rsort($temp_array, SORT_REGULAR) ); [all …]
|
H A D | rsort_variation8.phpt | 2 Test rsort() function : usage variations - multi-dimensional arrays 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() multi-dimensional arrays to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 34 // loop through to test rsort() with different arrays 41 var_dump(rsort($temp_array) ); 46 var_dump(rsort($temp_array, SORT_REGULAR) ); 55 *** Testing rsort() : variation ***
|
H A D | rsort_variation2.phpt | 2 Test rsort() function : usage variations - Pass different data types as $sort_flags arg 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass different data types as $sort_flags argument to rsort() to test behaviour 15 echo "*** Testing rsort() : variation ***\n"; 88 // loop through each element of $inputs to check the behavior of rsort() 93 //create temporary array in case rsort() works 96 var_dump( rsort($temp, $input) ); 109 *** Testing rsort() : variation *** 338 Warning: rsort() expects parameter 2 to be long, string given in %s on line %d 355 Warning: rsort() expects parameter 2 to be long, string given in %s on line %d [all …]
|
H A D | rsort_variation11.phpt | 2 Test rsort() function : usage variations - mixed array 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() an array of different data types to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 30 var_dump(rsort($temp_array) ); 35 var_dump(rsort($temp_array, SORT_REGULAR) ); 41 *** Testing rsort() : variation ***
|
H A D | rsort_object2.phpt | 2 Test rsort() function : object functionality - different visibilities 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Test functionality of rsort() with objects where properties have different visibilities 14 echo "*** Testing rsort() : object functionality ***\n"; 72 // testing rsort() function by supplying integer object array, flag value is defualt 74 var_dump(rsort($temp_array) ); 77 // testing rsort() function by supplying string object array, flag value is defualt 79 var_dump(rsort($temp_array) ); 85 var_dump(rsort($temp_array, SORT_REGULAR) ); 90 var_dump(rsort($temp_array, SORT_REGULAR) ); [all …]
|
H A D | rsort_variation5.phpt | 2 Test rsort() function : usage variations - String values 10 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 16 * Pass arrays containing different string data to rsort() to test behaviour 19 echo "*** Testing rsort() : variation ***\n"; 32 // loop through to test rsort() with different arrays 38 var_dump(rsort($temp_array) ); 46 var_dump(rsort($temp_array, $flag) ); 56 *** Testing rsort() : variation ***
|
H A D | rsort_variation9.phpt | 2 Test rsort() function : usage variations - mixed associative arrays 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass rsort() associative arrays to test key re-assignment 14 echo "*** Testing rsort() : variation ***\n"; 38 // loop through to test rsort() with different arrays, 45 var_dump(rsort($temp_array) ); 50 var_dump(rsort($temp_array, SORT_REGULAR) ); 58 *** Testing rsort() : variation ***
|
H A D | rsort_variation3.phpt | 2 Test rsort() function : usage variations - numeric values 9 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 15 * Pass arrays containing different numeric data to rsort() to test behaviour 18 echo "*** Testing rsort() : variation ***\n"; 41 // loop through to test rsort() with different arrays 47 var_dump(rsort($temp_array) ); 54 var_dump(rsort($temp_array, $flag) ); 64 *** Testing rsort() : variation ***
|
H A D | 002.phpt | 2 Test arsort, asort, krsort, ksort, rsort, and sort 27 foreach (array ('arsort', 'asort', 'krsort', 'ksort', 'rsort', 'sort') as $test_function) { 450 -- Testing rsort() --
|
/PHP-5.3/ext/standard/ |
H A D | php_array.h | 37 PHP_FUNCTION(rsort);
|
H A D | array.c | 550 PHP_FUNCTION(rsort) in PHP_FUNCTION() argument
|
H A D | basic_functions.c | 3265 PHP_FE(rsort, arginfo_rsort)
|
Completed in 125 milliseconds