Lines Matching refs:asort
2 Test asort() function : basic functionality
5 /* Prototype : bool asort ( array &$array [, int $sort_flags] )
12 * Testing asort() by providing integer/string arrays to check the basic functionality
20 echo "*** Testing asort() : basic functionality ***\n";
31 echo "\n-- Testing asort() by supplying string array, 'flag' value is default --\n";
33 var_dump( asort($temp_array) ); // expecting : bool(true)
36 echo "\n-- Testing asort() by supplying numeric array, 'flag' value is default --\n";
38 var_dump( asort($temp_array) ); // expecting : bool(true)
41 echo "\n-- Testing asort() by supplying string array, 'flag' = SORT_REGULAR --\n";
43 var_dump( asort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
46 echo "\n-- Testing asort() by supplying numeric array, 'flag' = SORT_REGULAR --\n";
48 var_dump( asort($temp_array, SORT_REGULAR) ); // expecting : bool(true)
51 echo "\n-- Testing asort() by supplying string array, 'flag' = SORT_STRING --\n";
53 var_dump( asort($temp_array, SORT_STRING) ); // expecting : bool(true)
56 echo "\n-- Testing asort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_…
58 var_dump( asort($temp_array, SORT_STRING|SORT_FLAG_CASE) ); // expecting : bool(true)
61 echo "\n-- Testing asort() by supplying string array (natural), 'flag' = SORT_NATURAL --\n";
63 var_dump( asort($temp_array, SORT_NATURAL) ); // expecting : bool(true)
66 echo "\n-- Testing asort() by supplying string array (natural, case insensitive), 'flag' = SORT_NAT…
68 var_dump( asort($temp_array, SORT_NATURAL|SORT_FLAG_CASE) ); // expecting : bool(true)
71 echo "\n-- Testing asort() by supplying numeric array, 'flag' = SORT_NUMERIC --\n";
73 var_dump( asort($temp_array, SORT_NUMERIC) ); // expecting : bool(true)
79 *** Testing asort() : basic functionality ***
81 -- Testing asort() by supplying string array, 'flag' value is default --
102 -- Testing asort() by supplying numeric array, 'flag' value is default --
115 -- Testing asort() by supplying string array, 'flag' = SORT_REGULAR --
136 -- Testing asort() by supplying numeric array, 'flag' = SORT_REGULAR --
149 -- Testing asort() by supplying string array, 'flag' = SORT_STRING --
170 -- Testing asort() by supplying string array (case insensitive), 'flag' = SORT_STRING|SORT_FLAG_CAS…
191 -- Testing asort() by supplying string array (natural), 'flag' = SORT_NATURAL --
212 -- Testing asort() by supplying string array (natural, case insensitive), 'flag' = SORT_NATURAL|SOR…
233 -- Testing asort() by supplying numeric array, 'flag' = SORT_NUMERIC --