Lines Matching refs:ksort
2 Test ksort() function : basic functionality
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
11 …* Testing ksort() by providing array of integer/string values to check the basic functionality wi…
18 echo "*** Testing ksort() : basic functionality ***\n";
29 echo "\n-- Testing ksort() by supplying string array, 'flag' value is defualt --\n";
31 var_dump( ksort($temp_array) ); // expecting : bool(true)
34 echo "\n-- Testing ksort() by supplying numeric array, 'flag' value is defualt --\n";
36 var_dump( ksort($temp_array) ); // expecting : bool(true)
39 echo "\n-- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --\n";
41 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
44 echo "\n-- Testing ksort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
46 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
49 echo "\n-- Testing ksort() by supplying string array, 'flag' = SORT_STRING --\n";
51 var_dump( ksort($temp_array, SORT_STRING) ); // expecting : bool(true)
54 echo "\n-- Testing ksort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_…
59 echo "\n-- Testing ksort() by supplying string array (natural), 'flag' = SORT_NATURAL --\n";
64 echo "\n-- Testing ksort() by supplying string array (natural, case insensitive), 'flag' = SORT_NAT…
69 echo "\n-- Testing ksort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
71 var_dump( ksort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
77 *** Testing ksort() : basic functionality ***
79 -- Testing ksort() by supplying string array, 'flag' value is defualt --
100 -- Testing ksort() by supplying numeric array, 'flag' value is defualt --
113 -- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --
134 -- Testing ksort() by supplying numeric array, 'flag' = SORT_REGULAR --
147 -- Testing ksort() by supplying string array, 'flag' = SORT_STRING --
168 -- Testing ksort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_FLAG_CAS…
189 -- Testing ksort() by supplying string array (natural), 'flag' = SORT_NATURAL --
210 -- Testing ksort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATURAL|SOR…
231 -- Testing ksort() by supplying numeric array, 'flag' = SORT_NUMERIC --