Lines Matching refs:ksort
2 Test ksort() function : object functionality - sort objects
5 /* Prototype : bool ksort ( array &$array [, int $sort_flags] )
10 * testing ksort() by providing array ofinteger/string objects with following flag values:
15 echo "*** Testing ksort() : object functionality ***\n";
58 echo "\n-- Testing ksort() by supplying various object arrays, 'flag' value is defualt --\n";
60 // testing ksort() function by supplying integer object array, flag value is defualt
62 var_dump(ksort($temp_array) );
65 // testing ksort() function by supplying string object array, flag value is defualt
67 var_dump(ksort($temp_array) );
70 echo "\n-- Testing ksort() by supplying various object arrays, 'flag' value is SORT_REGULAR --\n";
71 // testing ksort() function by supplying integer object array, flag value = SORT_REGULAR
73 var_dump(ksort($temp_array, SORT_REGULAR) );
76 // testing ksort() function by supplying string object array, flag value = SORT_REGULAR
78 var_dump(ksort($temp_array, SORT_REGULAR) );
84 *** Testing ksort() : object functionality ***
86 -- Testing ksort() by supplying various object arrays, 'flag' value is defualt --
164 -- Testing ksort() by supplying various object arrays, 'flag' value is SORT_REGULAR --