Lines Matching refs:krsort
2 Test krsort() function : object functionality - sort objects
5 /* Prototype : bool krsort ( array &$array [, int $sort_flags] )
10 * testing krsort() by providing array of integer/string objects with following flag values:
15 echo "*** Testing krsort() : object functionality ***\n";
59 echo "\n-- Testing krsort() by supplying various object arrays, 'flag' value is defualt --\n";
61 // testing krsort() function by supplying integer object array, flag value is defualt
63 var_dump(krsort($temp_array) );
66 // testing krsort() function by supplying string object array, flag value is defualt
68 var_dump(krsort($temp_array) );
71 echo "\n-- Testing krsort() by supplying various object arrays, 'flag' value is SORT_REGULAR --\n";
72 // testing krsort() function by supplying integer object array, flag value = SORT_REGULAR
74 var_dump(krsort($temp_array, SORT_REGULAR) );
77 // testing krsort() function by supplying string object array, flag value = SORT_REGULAR
79 var_dump(krsort($temp_array, SORT_REGULAR) );
85 *** Testing krsort() : object functionality ***
87 -- Testing krsort() by supplying various object arrays, 'flag' value is defualt --
165 -- Testing krsort() by supplying various object arrays, 'flag' value is SORT_REGULAR --