Lines Matching refs:sort
2 Test sort() function : basic functionality
5 /* Prototype : bool sort ( array &$array [, int $sort_flags] )
12 * Testing sort() by providing arrays with default keys and assoc arrays
20 echo "*** Testing sort() : basic functionality ***\n";
28 echo "\n-- Testing sort() by supplying string array, 'flag' value is defualt --\n";
30 var_dump( sort($temp_array) ); // expecting : bool(true)
33 echo "\n-- Testing sort() by supplying numeric array, 'flag' value is defualt --\n";
35 var_dump( sort($temp_array) ); // expecting : bool(true)
38 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --\n";
40 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
43 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
45 var_dump( sort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
48 echo "\n-- Testing sort() by supplying string array, 'flag' = SORT_STRING --\n";
50 var_dump( sort($temp_array, SORT_STRING) ); // expecting : bool(true)
53 echo "\n-- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
55 var_dump( sort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
61 *** Testing sort() : basic functionality ***
63 -- Testing sort() by supplying string array, 'flag' value is defualt --
74 -- Testing sort() by supplying numeric array, 'flag' value is defualt --
87 -- Testing sort() by supplying string array, 'flag' = SORT_REGULAR --
98 -- Testing sort() by supplying numeric array, 'flag' = SORT_REGULAR --
111 -- Testing sort() by supplying string array, 'flag' = SORT_STRING --
122 -- Testing sort() by supplying numeric array, 'flag' = SORT_NUMERIC --