Home
last modified time | relevance | path

Searched refs:ksort (Results 1 – 25 of 40) sorted by relevance

12

/PHP-8.2/ext/standard/tests/array/
H A Dksort_variation4.phpt2 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 Dksort_basic.phpt2 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 Dksort_variation10.phpt2 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 Dksort_variation6.phpt2 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 Dksort_variation11.phpt2 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 Dksort_object.phpt2 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 Dksort_variation8.phpt2 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 Dksort_variation3.phpt2 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 Dksort_variation7.phpt2 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 Dksort_variation5.phpt2 Test ksort() function : usage variations - sort strings
6 * testing ksort() by providing array of string values for $array argument with
13 echo "*** Testing ksort() : usage variations ***\n";
32 echo "\n-- Testing ksort() by supplying various string arrays --\n";
34 // loop through to test ksort() with different arrays
40 var_dump(ksort($temp_array) ); // expecting : bool(true)
43 // loop through $flags array and call ksort() with all possible sort flag values
47 var_dump(ksort($temp_array, $flag) ); // expecting : bool(true)
56 *** Testing ksort() : usage variations ***
58 -- Testing ksort() by supplying various string arrays --
H A Dksort_variation9.phpt2 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 Dgh9296.phpt2 GH-9296: incorrect ksort(..., SORT_REGULAR) behaviour on arrays with numeric and string keys
6 ksort($array, SORT_REGULAR);
/PHP-8.2/ext/spl/tests/
H A DarrayObject_ksort_basic1.phpt2 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 DarrayObject_ksort_basic2.phpt2 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 DarrayIterator_ksort_basic1.phpt2 Bug #79653: Unexpected error for ArrayIterator::ksort()
8 var_dump($arrIter->ksort());
/PHP-8.2/scripts/dev/
H A Dsearch_underscores.php80 ksort($extensions);
83 ksort($classes);
86 ksort($methods);
/PHP-8.2/ext/phar/tests/cache_list/files/
H A Dwrite5.phar8 ksort($arr);
15 ksort($arr);
H A Dwrite5.phar.inc14 ksort($arr);
21 ksort($arr);
H A Dwrite6.phar9 ksort($arr);
16 ksort($arr);
H A Dwrite6.phar.inc15 ksort($arr);
22 ksort($arr);
/PHP-8.2/ext/spl/
H A Dspl_array.stub.php51 public function ksort(int $flags = SORT_REGULAR): bool {} function in ArrayObject
172 public function ksort(int $flags = SORT_REGULAR): bool {} function in ArrayIterator
H A Dspl_array_arginfo.h167 ZEND_METHOD(ArrayObject, ksort);
204 ZEND_ME(ArrayObject, ksort, arginfo_class_ArrayObject_ksort, ZEND_ACC_PUBLIC)
234 ZEND_MALIAS(ArrayObject, ksort, ksort, arginfo_class_ArrayIterator_ksort, ZEND_ACC_PUBLIC)
/PHP-8.2/ext/standard/tests/strings/
H A D004.phpt8 ksort($a);
/PHP-8.2/ext/standard/html_tables/
H A Dhtml_table_gen.php337 ksort($mappy);
459 ksort($multicp_rows);
460 foreach ($multicp_rows as &$v) { ksort($v); }
/PHP-8.2/ext/standard/tests/general_functions/
H A Dbug29038.phpt6 ksort($a);

Completed in 65 milliseconds

12