Searched refs:rsort (Results 1 – 20 of 20) sorted by relevance
/PHP-7.3/ext/standard/tests/array/ |
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) ); 33 *** Testing rsort() : error conditions *** 35 -- Testing rsort() function with Zero arguments -- [all …]
|
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"; 28 var_dump( rsort($temp_array) ); 33 var_dump( rsort($temp_array) ); 38 var_dump( rsort($temp_array, SORT_REGULAR) ); 43 var_dump( rsort($temp_array, SORT_REGULAR) ); 48 var_dump( rsort($temp_array, SORT_STRING) ); 68 var_dump( rsort($temp_array, SORT_NUMERIC) ); [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) ); 104 *** 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) ); 42 *** 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) ); 37 *** Testing rsort() : variation ***
|
H A D | rsort_variation4.phpt | 2 Test rsort() function : usage variations - referenced variables 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Test behaviour of rsort() when: 17 echo "*** Testing rsort() : variation ***\n"; 28 var_dump( rsort($temp_array) ); 33 var_dump( rsort($temp_array, SORT_REGULAR) ); 39 *** 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) ); 37 *** 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) ); 54 *** Testing rsort() : variation ***
|
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_variation2.phpt | 2 Test rsort() function : usage variations - Pass different data types as $sort_flags arg 7 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 13 * Pass different data types as $sort_flags argument to rsort() to test behaviour 17 echo "*** Testing rsort() : variation ***\n"; 90 // loop through each element of $inputs to check the behavior of rsort() 95 //create temporary array in case rsort() works 98 var_dump( rsort($temp, $input) ); 110 *** Testing rsort() : variation *** 339 Warning: rsort() expects parameter 2 to be int, string given in %s on line %d 356 Warning: rsort() expects parameter 2 to be int, string given in %s on line %d [all …]
|
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) ); 55 *** 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) ); 63 *** 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) { 472 -- Testing rsort() --
|
/PHP-7.3/Zend/tests/ |
H A D | foreach_011.phpt | 9 rsort($a);
|
/PHP-7.3/ext/standard/ |
H A D | php_array.h | 35 PHP_FUNCTION(rsort);
|
H A D | basic_functions.c | 3337 PHP_FE(rsort, arginfo_rsort)
|
H A D | array.c | 942 PHP_FUNCTION(rsort) in PHP_FUNCTION() argument
|
Completed in 55 milliseconds