Searched refs:rsort (Results 1 – 17 of 17) sorted by relevance
/PHP-7.4/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"; 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_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_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 5 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags]) 11 * Pass arrays containing different string data to rsort() to test behaviour 14 echo "*** Testing rsort() : variation ***\n"; 27 // loop through to test rsort() with different arrays 33 var_dump(rsort($temp_array) ); 41 var_dump(rsort($temp_array, $flag) ); 50 *** 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.4/Zend/tests/ |
H A D | foreach_011.phpt | 9 rsort($a);
|
/PHP-7.4/ext/standard/ |
H A D | php_array.h | 35 PHP_FUNCTION(rsort);
|
H A D | basic_functions.c | 3332 PHP_FE(rsort, arginfo_rsort)
|
H A D | array.c | 933 PHP_FUNCTION(rsort) in PHP_FUNCTION() argument
|
Completed in 43 milliseconds