/php-src/ext/standard/tests/array/sort/ |
H A D | ksort_variation4.phpt | 2 Test ksort() function : usage variations - sort bool values 11 echo "*** Testing ksort() : usage variations ***\n"; 18 var_dump(ksort($temp_array) ); 23 var_dump(ksort($temp_array, SORT_REGULAR) ); 28 var_dump(ksort($temp_array, SORT_NUMERIC) ); 33 var_dump(ksort($temp_array, SORT_STRING) ); 39 *** Testing ksort() : usage variations *** 41 -- Testing ksort() by supplying boolean value array, 'flag' value is default -- 50 -- Testing ksort() by supplying boolean value array, 'flag' value is SORT_REGULAR -- 59 -- Testing ksort() by supplying boolean value array, 'flag' value is SORT_NUMERIC -- [all …]
|
H A D | ksort_basic.phpt | 2 Test ksort() function : basic functionality 13 echo "*** Testing ksort() : basic functionality ***\n"; 26 var_dump( ksort($temp_array) ); // expecting : bool(true) 31 var_dump( ksort($temp_array) ); // expecting : bool(true) 36 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 41 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 46 var_dump( ksort($temp_array, SORT_STRING) ); // expecting : bool(true) 56 var_dump( ksort($temp_array, SORT_NATURAL) ); // expecting : bool(true) 72 *** Testing ksort() : basic functionality *** 108 -- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR -- [all …]
|
H A D | ksort_variation10.phpt | 2 Test ksort() function : usage variations - sort octal values 6 …* testing ksort() by providing array of octal values for $array argument with following flag value… 12 echo "*** Testing ksort() : usage variations ***\n"; 20 echo "\n-- Testing ksort() by supplying octal value array, 'flag' value is default --\n"; 22 var_dump( ksort($temp_array) ); // expecting : bool(true) 27 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 32 var_dump( ksort($temp_array, SORT_NUMERIC) ); // expecting : bool(true) 38 *** Testing ksort() : usage variations *** 40 -- Testing ksort() by supplying octal value array, 'flag' value is default -- 63 -- Testing ksort() by supplying octal value array, 'flag' value is SORT_REGULAR -- [all …]
|
H A D | ksort_variation6.phpt | 2 Test ksort() function : usage variations - sort hexadecimal values 6 …* testing ksort() by providing array of hexa-decimal values for $array argument with following fla… 12 echo "*** Testing ksort() : usage variations ***\n"; 21 echo "\n-- Testing ksort() by supplying hexadecimal value array, 'flag' value is default --\n"; 23 var_dump(ksort( $temp_array) ); // expecting : bool(true) 28 var_dump(ksort( $temp_array, SORT_REGULAR) ); // expecting : bool(true) 33 var_dump(ksort( $temp_array, SORT_NUMERIC) ); // expecting : bool(true) 39 *** Testing ksort() : usage variations *** 41 -- Testing ksort() by supplying hexadecimal value array, 'flag' value is default -- 64 -- Testing ksort() by supplying hexadecimal value array, 'flag' value is SORT_REGULAR -- [all …]
|
H A D | ksort_variation11.phpt | 2 Test ksort() function : usage variations - sort heredoc strings 6 * testing ksort() by providing array of heredoc strings for $array argument with 13 echo "*** Testing ksort() : usage variations ***\n"; 37 var_dump(ksort($temp_array) ); // expecting : bool(true) 42 var_dump(ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true) 45 echo "\n-- Testing ksort() by supplying heredoc string array, 'flag' = SORT_STRING --\n"; 47 var_dump(ksort($temp_array, SORT_STRING) ); // expecting : bool(true) 53 *** Testing ksort() : usage variations *** 55 -- Testing ksort() by supplying heredoc string array, 'flag' value is default -- 68 -- Testing ksort() by supplying heredoc string array, 'flag' = SORT_REGULAR -- [all …]
|
H A D | ksort_object.phpt | 2 Test ksort() function : object functionality - sort objects 6 * testing ksort() by providing array ofinteger/string objects with following flag values: 11 echo "*** Testing ksort() : object functionality ***\n"; 56 // testing ksort() function by supplying integer object array, flag value is default 58 var_dump(ksort($temp_array) ); 61 // testing ksort() function by supplying string object array, flag value is default 63 var_dump(ksort($temp_array) ); 69 var_dump(ksort($temp_array, SORT_REGULAR) ); 74 var_dump(ksort($temp_array, SORT_REGULAR) ); 80 *** Testing ksort() : object functionality *** [all …]
|
H A D | ksort_variation8.phpt | 2 Test ksort() function : usage variations - sort mixed values, 'sort_flags' as default/SORT_REGULAR … 6 …* testing ksort() by providing array of mixed values for $array argument with following flag value… 11 echo "*** Testing ksort() : usage variations ***\n"; 25 echo "\n-- Testing ksort() by supplying mixed value array, 'flag' value is default --\n"; 27 var_dump( ksort($temp_array) ); 30 echo "\n-- Testing ksort() by supplying mixed value array, 'flag' value is SORT_REGULAR --\n"; 32 var_dump( ksort($temp_array, SORT_REGULAR) ); 38 *** Testing ksort() : usage variations *** 40 -- Testing ksort() by supplying mixed value array, 'flag' value is default -- 97 -- Testing ksort() by supplying mixed value array, 'flag' value is SORT_REGULAR --
|
H A D | ksort_variation3.phpt | 2 Test ksort() function : usage variations - sort integer/float values 6 * Testing ksort() by providing array of integer/float/mixed values for $array argument 13 echo "*** Testing ksort() : usage variations ***\n"; 29 echo "\n-- Testing ksort() by supplying various integer/float arrays --\n"; 31 // loop through to test ksort() with different arrays 37 var_dump(ksort($temp_array) ); 40 // loop through $flags array and call ksort() with all possible sort flag values 44 var_dump(ksort($temp_array, $flag) ); 53 *** Testing ksort() : usage variations *** 55 -- Testing ksort() by supplying various integer/float arrays --
|
H A D | ksort_variation7.phpt | 2 Test ksort() function : usage variations - sort array with diff. sub arrays 6 * testing ksort() by providing arrays containing sub arrays for $array argument 12 echo "*** Testing ksort() : usage variations ***\n"; 32 echo "\n-- Testing ksort() by supplying various arrays containing sub arrays --\n"; 34 // loop through to test ksort() with different arrays 40 var_dump( ksort($temp_array) ); 45 var_dump( ksort($temp_array, SORT_REGULAR) ); 53 *** Testing ksort() : usage variations *** 55 -- Testing ksort() by supplying various arrays containing sub arrays --
|
H A D | ksort_variation9.phpt | 2 Test ksort() function : usage variations - sorting arrays with/without keys 6 …* Testing ksort() by providing arrays with/without key values for $array argument with following … 11 echo "*** Testing ksort() : usage variations ***\n"; 25 echo "\n-- Testing ksort() by supplying various arrays with/without key values --\n"; 27 // loop through to test ksort() with different arrays, 33 var_dump( ksort($temp_array) ); 38 var_dump( ksort($temp_array, SORT_REGULAR) ); 46 *** Testing ksort() : usage variations *** 48 -- Testing ksort() by supplying various arrays with/without key values --
|
H A D | ksort_variation_escape_sequences.phpt | 2 Test ksort() function: sorting escape sequences 36 var_dump(ksort($temp_array)); // expecting : bool(true) 41 var_dump(ksort($temp_array, SORT_REGULAR)); // expecting : bool(true) 46 var_dump(ksort($temp_array, SORT_STRING)); // expecting : bool(true)
|
H A D | gh9296.phpt | 2 GH-9296: incorrect ksort(..., SORT_REGULAR) behaviour on arrays with numeric and string keys 6 ksort($array, SORT_REGULAR);
|
H A D | ksort_variation5.phpt | 2 Test ksort() function : usage variations - sort strings 23 var_dump(ksort($temp_array)); // expecting : bool(true) 28 var_dump(ksort($temp_array, SORT_REGULAR)); // expecting : bool(true) 33 var_dump(ksort($temp_array, SORT_STRING)); // expecting : bool(true)
|
H A D | krsort_variation5.phpt | 23 var_dump(ksort($temp_array)); // expecting : bool(true) 28 var_dump(ksort($temp_array, SORT_REGULAR)); // expecting : bool(true) 33 var_dump(ksort($temp_array, SORT_STRING)); // expecting : bool(true)
|
/php-src/ext/spl/tests/ |
H A D | arrayObject_ksort_basic1.phpt | 2 SPL: Test ArrayObject::ksort() function : basic functionality with array based store 10 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n"; 13 var_dump($ao1->ksort()); 16 var_dump($ao2->ksort('blah')); 21 var_dump($ao2->ksort(SORT_STRING)); 25 *** Testing ArrayObject::ksort() : basic functionality *** 38 ArrayObject::ksort(): Argument #1 ($flags) must be of type int, string given
|
H A D | arrayObject_ksort_basic2.phpt | 2 SPL: Test ArrayObject::ksort() function : basic functionality with object base store 10 echo "*** Testing ArrayObject::ksort() : basic functionality ***\n"; 20 var_dump($ao1->ksort()); 24 *** Testing ArrayObject::ksort() : basic functionality ***
|
H A D | arrayIterator_ksort_basic1.phpt | 2 Bug #79653: Unexpected error for ArrayIterator::ksort() 8 var_dump($arrIter->ksort());
|
/php-src/scripts/dev/ |
H A D | search_underscores.php | 80 ksort($extensions); 83 ksort($classes); 86 ksort($methods);
|
/php-src/ext/phar/tests/cache_list/files/ |
H A D | write5.phar | 8 ksort($arr); 15 ksort($arr);
|
H A D | write5.phar.inc | 14 ksort($arr); 21 ksort($arr);
|
H A D | write6.phar | 9 ksort($arr); 16 ksort($arr);
|
H A D | write6.phar.inc | 15 ksort($arr); 22 ksort($arr);
|
/php-src/ext/spl/ |
H A D | spl_array.stub.php | 45 public function ksort(int $flags = SORT_REGULAR): true {} function in ArrayObject 160 public function ksort(int $flags = SORT_REGULAR): true {} function in ArrayIterator
|
/php-src/ext/standard/tests/strings/ |
H A D | 004.phpt | 8 ksort($a);
|
/php-src/ext/standard/html_tables/ |
H A D | html_table_gen.php | 337 ksort($mappy); 459 ksort($multicp_rows); 460 foreach ($multicp_rows as &$v) { ksort($v); }
|