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";
25 echo "\n-- Testing ksort() by supplying string array, 'flag' value is defualt --\n";
27 var_dump( ksort($temp_array) ); // expecting : bool(true)
30 echo "\n-- Testing ksort() by supplying numeric array, 'flag' value is defualt --\n";
32 var_dump( ksort($temp_array) ); // expecting : bool(true)
35 echo "\n-- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --\n";
37 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
40 echo "\n-- Testing ksort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
42 var_dump( ksort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
45 echo "\n-- Testing ksort() by supplying string array, 'flag' = SORT_STRING --\n";
47 var_dump( ksort($temp_array, SORT_STRING) ); // expecting : bool(true)
50 echo "\n-- Testing ksort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
52 var_dump( ksort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
58 *** Testing ksort() : basic functionality ***
60 -- Testing ksort() by supplying string array, 'flag' value is defualt --
71 -- Testing ksort() by supplying numeric array, 'flag' value is defualt --
84 -- Testing ksort() by supplying string array, 'flag' = SORT_REGULAR --
95 -- Testing ksort() by supplying numeric array, 'flag' = SORT_REGULAR --
108 -- Testing ksort() by supplying string array, 'flag' = SORT_STRING --
119 -- Testing ksort() by supplying numeric array, 'flag' = SORT_NUMERIC --