Lines Matching refs:usort
2 Test usort() function : usage variations - multi-dimensional arrays
5 /* Prototype : bool usort(array $array_arg, string $cmp_function)
11 * Pass a multi-dimensional array as $array_arg argument to usort()
15 echo "*** Testing usort() : usage variation ***\n";
43 echo "\n-- Pass usort() a two-dimensional array --\n";
45 var_dump( usort($temp_array, 'cmp_function') );
47 echo "-- Array after call to usort() --\n";
50 echo "\n-- Pass usort() a sub-array --\n";
51 var_dump( usort($array_args[5], 'cmp_function') );
53 echo "-- Array after call to usort() --\n";
58 *** Testing usort() : usage variation ***
60 -- Pass usort() a two-dimensional array --
62 -- Array after call to usort() --
124 -- Pass usort() a sub-array --
126 -- Array after call to usort() --