Lines Matching refs:function
2 Test usort() function : error conditions - Pass unknown 'cmp_function'
6 * Description: Sort an array by values using a user-defined comparison function
11 * Pass an unknown comparison function to usort() to test behaviour.
12 * Pass incorrect number of arguments and an unknown function to test which error
18 function cmp($value1, $value2)
35 // With non existent comparison function
36 echo "\n-- Testing usort() function with non-existent compare function --\n";
39 // With non existent comparison function and extra argument
40 echo "\n-- Testing usort() function with non-existent compare function and extra argument --\n";
47 -- Testing usort() function with non-existent compare function --
49 …ort() expects parameter 2 to be a valid callback, function 'non_existent' not found or invalid fun…
52 -- Testing usort() function with non-existent compare function and extra argument --