Lines Matching refs:uasort
2 Test uasort() function : usage variations - built-in function as 'cmp_function'
5 /* Prototype : bool uasort(array $array_arg, string $cmp_function)
16 echo "*** Testing uasort() : built in function as 'cmp_function' ***\n";
23 echo "-- Testing uasort() with built-in 'cmp_function': strcasecmp() --\n";
24 var_dump( uasort($builtin_fun_arg, 'strcasecmp') ); // expecting: bool(true)
27 echo "-- Testing uasort() with built-in 'cmp_function': strcmp() --\n";
28 var_dump( uasort($array_arg, 'strcmp') ); // expecting: bool(true)
32 echo "-- Testing uasort() with language construct as 'cmp_function' --\n";
33 var_dump( uasort($languageConstruct_fun_arg, 'echo') ); // expecting: bool(false)
35 echo "-- Testing uasort() with language construct as 'cmp_function' --\n";
36 var_dump( uasort($languageConstruct_fun_arg, 'exit') ); // expecting: bool(false)
41 *** Testing uasort() : built in function as 'cmp_function' ***
42 -- Testing uasort() with built-in 'cmp_function': strcasecmp() --
56 -- Testing uasort() with built-in 'cmp_function': strcmp() --
70 -- Testing uasort() with language construct as 'cmp_function' --
72 Warning: uasort() expects parameter 2 to be a valid callback, function 'echo' not found or invalid …
74 -- Testing uasort() with language construct as 'cmp_function' --
76 Warning: uasort() expects parameter 2 to be a valid callback, function 'exit' not found or invalid …