Lines Matching refs:usort
2 Test usort() function : usage variations - multi-dimensional arrays
6 * Pass a multi-dimensional array as $array_arg argument to usort()
10 echo "*** Testing usort() : usage variation ***\n";
38 echo "\n-- Pass usort() a two-dimensional array --\n";
40 var_dump( usort($temp_array, 'cmp_function') );
42 echo "-- Array after call to usort() --\n";
45 echo "\n-- Pass usort() a sub-array --\n";
46 var_dump( usort($array_args[5], 'cmp_function') );
48 echo "-- Array after call to usort() --\n";
52 *** Testing usort() : usage variation ***
54 -- Pass usort() a two-dimensional array --
56 -- Array after call to usort() --
118 -- Pass usort() a sub-array --
120 -- Array after call to usort() --