Searched refs:krsort (Results 1 – 19 of 19) sorted by relevance
/PHP-8.0/ext/standard/tests/array/ |
H A D | krsort_variation11.phpt | 2 Test krsort() function : usage variations - sort bool values 11 echo "*** Testing krsort() : usage variations ***\n"; 18 var_dump(krsort($temp_array) ); 23 var_dump(krsort($temp_array, SORT_REGULAR) ); 28 var_dump(krsort($temp_array, SORT_NUMERIC) ); 33 var_dump(krsort($temp_array, SORT_STRING) ); 39 *** Testing krsort() : usage variations *** 41 -- Testing krsort() by supplying boolean value array, 'flag' value is default -- 50 -- Testing krsort() by supplying boolean value array, 'flag' value is SORT_REGULAR -- 59 -- Testing krsort() by supplying boolean value array, 'flag' value is SORT_NUMERIC -- [all …]
|
H A D | krsort_basic.phpt | 2 Test krsort() function : basic functionality 14 echo "*** Testing krsort() : basic functionality ***\n"; 28 var_dump( krsort($temp_array) ); // expecting : bool(true) 33 var_dump( krsort($temp_array) ); // expecting : bool(true) 38 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 43 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 48 var_dump( krsort($temp_array, SORT_STRING) ); // expecting : bool(true) 58 var_dump( krsort($temp_array, SORT_NATURAL) ); // expecting : bool(true) 74 *** Testing krsort() : basic functionality *** 110 -- Testing krsort() by supplying string array, 'flag' = SORT_REGULAR -- [all …]
|
H A D | krsort_variation4.phpt | 2 Test krsort() function : usage variations - sort octal values 6 * testing krsort() by providing array of octal values for $array argument 13 echo "*** Testing krsort() : usage variations ***\n"; 21 echo "\n-- Testing krsort() by supplying octal value array, 'flag' value is default --\n"; 23 var_dump( krsort($temp_array) ); // expecting : bool(true) 28 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 33 var_dump( krsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true) 39 *** Testing krsort() : usage variations *** 41 -- Testing krsort() by supplying octal value array, 'flag' value is default -- 64 -- Testing krsort() by supplying octal value array, 'flag' value is SORT_REGULAR -- [all …]
|
H A D | krsort_variation6.phpt | 2 Test krsort() function : usage variations - sort hexadecimal values 6 * testing krsort() by providing array of hexa-decimal values for $array argument 13 echo "*** Testing krsort() : usage variations ***\n"; 21 echo "\n-- Testing krsort() by supplying hexadecimal value array, 'flag' value is default --\n"; 23 var_dump(krsort( $temp_array) ); // expecting : bool(true) 28 var_dump(krsort( $temp_array, SORT_REGULAR) ); // expecting : bool(true) 33 var_dump(krsort( $temp_array, SORT_NUMERIC) ); // expecting : bool(true) 39 *** Testing krsort() : usage variations *** 41 -- Testing krsort() by supplying hexadecimal value array, 'flag' value is default -- 64 -- Testing krsort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR -- [all …]
|
H A D | krsort_variation10.phpt | 2 Test krsort() function : usage variations - sort heredoc strings 6 * testing krsort() by providing array of heredoc strings for $array argument with 13 echo "*** Testing krsort() : usage variations ***\n"; 37 var_dump(krsort($temp_array) ); // expecting : bool(true) 42 var_dump(krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 45 echo "\n-- Testing krsort() by supplying heredoc string array, 'flag' = SORT_STRING --\n"; 47 var_dump(krsort($temp_array, SORT_STRING) ); // expecting : bool(true) 53 *** Testing krsort() : usage variations *** 55 -- Testing krsort() by supplying heredoc string array, 'flag' value is default -- 68 -- Testing krsort() by supplying heredoc string array, 'flag' = SORT_REGULAR -- [all …]
|
H A D | krsort_object.phpt | 2 Test krsort() function : object functionality - sort objects 6 * testing krsort() by providing array of integer/string objects with following flag values: 11 echo "*** Testing krsort() : object functionality ***\n"; 57 // testing krsort() function by supplying integer object array, flag value is default 59 var_dump(krsort($temp_array) ); 62 // testing krsort() function by supplying string object array, flag value is default 64 var_dump(krsort($temp_array) ); 70 var_dump(krsort($temp_array, SORT_REGULAR) ); 75 var_dump(krsort($temp_array, SORT_REGULAR) ); 81 *** Testing krsort() : object functionality *** [all …]
|
H A D | krsort_variation8.phpt | 2 Test krsort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR… 6 * testing krsort() by providing array of mixed values for $array argument 12 echo "*** Testing krsort() : usage variations ***\n"; 26 echo "\n-- Testing krsort() by supplying mixed value array, 'flag' value is default --\n"; 28 var_dump( krsort($temp_array) ); 31 echo "\n-- Testing krsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n"; 33 var_dump( krsort($temp_array, SORT_REGULAR) ); 39 *** Testing krsort() : usage variations *** 41 -- Testing krsort() by supplying mixed value array, 'flag' value is default -- 98 -- Testing krsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --
|
H A D | krsort_variation7.phpt | 2 Test krsort() function : usage variations - sort array with diff. sub arrays 6 * testing krsort() by providing arrays contains sub arrays for $array argument 12 echo "*** Testing krsort() : usage variations ***\n"; 32 echo "\n-- Testing krsort() by supplying various arrays containing sub arrays --\n"; 34 // loop through to test krsort() with different arrays 40 var_dump( krsort($temp_array) ); 45 var_dump( krsort($temp_array, SORT_REGULAR) ); 53 *** Testing krsort() : usage variations *** 55 -- Testing krsort() by supplying various arrays containing sub arrays --
|
H A D | krsort_variation3.phpt | 2 Test krsort() function : usage variations - sort integer/float values 6 * Testing krsort() by providing array of integer/float/mixed values for $array argument 13 echo "*** Testing krsort() : usage variations ***\n"; 32 echo "\n-- Testing krsort() by supplying various integer/float arrays --\n"; 34 // loop through to test krsort() with different arrays 40 var_dump(krsort($temp_array) ); 43 // loop through $flags array and call krsort() with all possible sort flag values 47 var_dump(krsort($temp_array, $flag) ); 56 *** Testing krsort() : usage variations *** 58 -- Testing krsort() by supplying various integer/float arrays --
|
H A D | krsort_variation5.phpt | 2 Test krsort() function : usage variations - sort strings 6 * testing krsort() by providing array of string values for $array argument with 13 echo "*** Testing krsort() : usage variations ***\n"; 32 echo "\n-- Testing krsort() by supplying various string arrays --\n"; 34 // loop through to test krsort() with different arrays 40 var_dump(krsort($temp_array) ); // expecting : bool(true) 43 // loop through $flags array and call krsort() with all possible sort flag values 47 var_dump(krsort($temp_array, $flag) ); // expecting : bool(true) 56 *** Testing krsort() : usage variations *** 58 -- Testing krsort() by supplying various string arrays --
|
H A D | krsort_variation9.phpt | 2 Test krsort() function : usage variations - sort array with/without key values 6 * Testing krsort() by providing arrays with/without key values for $array argument 12 echo "*** Testing krsort() : usage variations ***\n"; 26 echo "\n-- Testing krsort() by supplying various arrays with/without key values --\n"; 28 // loop through to test krsort() with different arrays, 34 var_dump( krsort($temp_array) ); 39 var_dump( krsort($temp_array, SORT_REGULAR) ); 47 *** Testing krsort() : usage variations *** 49 -- Testing krsort() by supplying various arrays with/without key values --
|
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) { 276 -- Testing krsort() --
|
/PHP-8.0/ext/spl/tests/ |
H A D | class_implements_basic2.phpt | 29 krsort($arr);
|
H A D | class_uses_basic2.phpt | 32 krsort($arr);
|
/PHP-8.0/ext/mysqli/tests/ |
H A D | mysqli_fetch_field_flags.phpt | 49 krsort($flags);
|
H A D | mysqli_stmt_bind_result_format.phpt | 244 krsort($values);
|
/PHP-8.0/ext/standard/ |
H A D | basic_functions.stub.php | 61 function krsort(array &$array, int $flags = SORT_REGULAR): bool {} function
|
H A D | basic_functions_arginfo.h | 2236 ZEND_FUNCTION(krsort); 2859 ZEND_FE(krsort, arginfo_krsort)
|
H A D | array.c | 657 PHP_FUNCTION(krsort) in PHP_FUNCTION() argument
|
Completed in 68 milliseconds