/PHP-7.3/ext/standard/tests/array/ |
H A D | krsort_variation1.phpt | 2 Test krsort() function : usage variations - unexpected values for 'array' argument 5 /* Prototype : bool krsort(array &array_arg [, int sort_flags]) 11 * testing krsort() by providing different unexpected values for array argument 19 echo "*** Testing krsort() : usage variations ***\n"; 74 // loop though each element of the array and check the working of krsort() 83 var_dump( krsort($value) ); // expecting : bool(false) 84 var_dump( krsort($value, SORT_REGULAR) ); // expecting : bool(false) 85 var_dump( krsort($value, SORT_NUMERIC) ); // expecting : bool(false) 86 var_dump( krsort($value, SORT_STRING) ); // expecting : bool(false) 93 *** Testing krsort() : usage variations *** [all …]
|
H A D | krsort_error.phpt | 2 Test krsort() function : error conditions 5 /* Prototype : bool krsort(array &array_arg [, int asort_flags]) 11 * Testing krsort() function with all possible error conditions 14 echo "*** Testing krsort() : error conditions ***\n"; 17 echo "\n-- Testing krsort() function with zero arguments --\n"; 18 var_dump( krsort() ); 20 //Test krsort with more than the expected number of arguments 30 var_dump( krsort($temp_array,$flag, $extra_arg) ); 37 *** Testing krsort() : error conditions *** 39 -- Testing krsort() function with zero arguments -- [all …]
|
H A D | krsort_variation11.phpt | 2 Test krsort() function : usage variations - sort bool values 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 16 echo "*** Testing krsort() : usage variations ***\n"; 23 var_dump(krsort($temp_array) ); 28 var_dump(krsort($temp_array, SORT_REGULAR) ); 33 var_dump(krsort($temp_array, SORT_NUMERIC) ); 38 var_dump(krsort($temp_array, SORT_STRING) ); 44 *** Testing krsort() : usage variations *** 46 -- Testing krsort() by supplying boolean value array, 'flag' value is defualt -- 55 -- Testing krsort() by supplying boolean value array, 'flag' value is SORT_REGULAR -- [all …]
|
H A D | krsort_basic.phpt | 2 Test krsort() function : basic functionality 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 19 echo "*** Testing krsort() : basic functionality ***\n"; 33 var_dump( krsort($temp_array) ); // expecting : bool(true) 38 var_dump( krsort($temp_array) ); // expecting : bool(true) 43 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 48 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 53 var_dump( krsort($temp_array, SORT_STRING) ); // expecting : bool(true) 63 var_dump( krsort($temp_array, SORT_NATURAL) ); // expecting : bool(true) 79 *** Testing krsort() : basic functionality *** [all …]
|
H A D | krsort_variation4.phpt | 2 Test krsort() function : usage variations - sort octal values 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * testing krsort() by providing array of octal values for $array argument 18 echo "*** Testing krsort() : usage variations ***\n"; 28 var_dump( krsort($temp_array) ); // expecting : bool(true) 33 var_dump( krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 38 var_dump( krsort($temp_array, SORT_NUMERIC) ); // expecting : bool(true) 44 *** Testing krsort() : usage variations *** 46 -- Testing krsort() by supplying octal value array, 'flag' value is defualt -- 69 -- 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 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * testing krsort() by providing array of hexa-decimal values for $array argument 18 echo "*** Testing krsort() : usage variations ***\n"; 28 var_dump(krsort( $temp_array) ); // expecting : bool(true) 33 var_dump(krsort( $temp_array, SORT_REGULAR) ); // expecting : bool(true) 38 var_dump(krsort( $temp_array, SORT_NUMERIC) ); // expecting : bool(true) 44 *** Testing krsort() : usage variations *** 46 -- Testing krsort() by supplying hexadecimal value array, 'flag' value is defualt -- 69 -- 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 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * testing krsort() by providing array of heredoc strings for $array argument with 18 echo "*** Testing krsort() : usage variations ***\n"; 42 var_dump(krsort($temp_array) ); // expecting : bool(true) 47 var_dump(krsort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 52 var_dump(krsort($temp_array, SORT_STRING) ); // expecting : bool(true) 58 *** Testing krsort() : usage variations *** 60 -- Testing krsort() by supplying heredoc string array, 'flag' value is defualt -- 73 -- 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 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 15 echo "*** Testing krsort() : object functionality ***\n"; 61 // testing krsort() function by supplying integer object array, flag value is defualt 63 var_dump(krsort($temp_array) ); 66 // testing krsort() function by supplying string object array, flag value is defualt 68 var_dump(krsort($temp_array) ); 74 var_dump(krsort($temp_array, SORT_REGULAR) ); 79 var_dump(krsort($temp_array, SORT_REGULAR) ); 85 *** Testing krsort() : object functionality *** [all …]
|
H A D | krsort_variation2.phpt | 2 Test krsort() function : usage variations - unexpected values for 'sort_flags' argument 5 /* Prototype : bool krsort(array &array_arg [, int sort_flags]) 11 * Testing krsort() by providing different unexpected values for flag argument 14 echo "*** Testing krsort() : usage variations ***\n"; 71 // loop though each element of the array and check the working of krsort() 80 var_dump( krsort($temp_array, $value) ); 88 *** Testing krsort() : usage variations *** 213 Warning: krsort() expects parameter 2 to be int, string given in %s on line %d 225 Warning: krsort() expects parameter 2 to be int, string given in %s on line %d 237 Warning: krsort() expects parameter 2 to be int, string given in %s on line %d [all …]
|
H A D | krsort_variation8.phpt | 2 Test krsort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR… 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * testing krsort() by providing array of mixed values for $array argument 17 echo "*** Testing krsort() : usage variations ***\n"; 31 echo "\n-- Testing krsort() by supplying mixed value array, 'flag' value is defualt --\n"; 33 var_dump( krsort($temp_array) ); 36 echo "\n-- Testing krsort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n"; 38 var_dump( krsort($temp_array, SORT_REGULAR) ); 44 *** Testing krsort() : usage variations *** 46 -- Testing krsort() by supplying mixed value array, 'flag' value is defualt -- [all …]
|
H A D | krsort_variation7.phpt | 2 Test krsort() function : usage variations - sort array with diff. sub arrays 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * testing krsort() by providing arrays contains sub arrays for $array argument 17 echo "*** Testing krsort() : usage variations ***\n"; 37 echo "\n-- Testing krsort() by supplying various arrays containing sub arrays --\n"; 39 // loop through to test krsort() with different arrays 45 var_dump( krsort($temp_array) ); 50 var_dump( krsort($temp_array, SORT_REGULAR) ); 58 *** Testing krsort() : usage variations *** 60 -- 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 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * Testing krsort() by providing array of integer/float/mixed values for $array argument 18 echo "*** Testing krsort() : usage variations ***\n"; 37 echo "\n-- Testing krsort() by supplying various integer/float arrays --\n"; 39 // loop through to test krsort() with different arrays 45 var_dump(krsort($temp_array) ); 48 // loop through $flags array and call krsort() with all possible sort flag values 52 var_dump(krsort($temp_array, $flag) ); 61 *** Testing krsort() : usage variations *** [all …]
|
H A D | krsort_variation9.phpt | 2 Test krsort() function : usage variations - sort array with/without key values 5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 11 * Testing krsort() by providing arrays with/without key values for $array argument 17 echo "*** Testing krsort() : usage variations ***\n"; 31 echo "\n-- Testing krsort() by supplying various arrays with/without key values --\n"; 33 // loop through to test krsort() with different arrays, 39 var_dump( krsort($temp_array) ); 44 var_dump( krsort($temp_array, SORT_REGULAR) ); 52 *** Testing krsort() : usage variations *** 54 -- Testing krsort() by supplying various arrays with/without key values --
|
H A D | krsort_variation5.phpt | 2 Test krsort() function : usage variations - sort strings 10 /* Prototype : bool krsort ( array &$array [, int $sort_flags] ) 16 * testing krsort() by providing array of string values for $array argument with 23 echo "*** Testing krsort() : usage variations ***\n"; 42 echo "\n-- Testing krsort() by supplying various string arrays --\n"; 44 // loop through to test krsort() with different arrays 50 var_dump(krsort($temp_array) ); // expecting : bool(true) 53 // loop through $flags array and call krsort() with all possible sort flag values 57 var_dump(krsort($temp_array, $flag) ); // expecting : bool(true) 66 *** Testing krsort() : usage variations *** [all …]
|
H A D | ksort_error.phpt | 26 // loop through $flag_value array and call krsort with all possible sort flag 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-7.3/ext/spl/tests/ |
H A D | class_implements_basic2.phpt | 35 krsort($arr);
|
H A D | class_uses_basic2.phpt | 38 krsort($arr);
|
/PHP-7.3/ext/standard/ |
H A D | php_array.h | 29 PHP_FUNCTION(krsort);
|
H A D | basic_functions.c | 3331 PHP_FE(krsort, arginfo_krsort)
|
H A D | array.c | 701 PHP_FUNCTION(krsort) in PHP_FUNCTION() argument
|
/PHP-7.3/ext/mysqli/tests/ |
H A D | mysqli_fetch_field_flags.phpt | 50 krsort($flags);
|
H A D | mysqli_stmt_bind_result_format.phpt | 245 krsort($values);
|