2 /* Prototype : bool rsort(array &$array_arg [, int $sort_flags])
3 * Description: Sort an array in reverse order
4 * Source code: ext/standard/array.c
8 * Pass incorrect number of arguments to rsort() to test behaviour
11 echo "*** Testing rsort() : error conditions ***\n";
14 echo "\n-- Testing rsort() function with Zero arguments --\n";
17 //Test rsort() with more than the expected number of arguments
18 echo "\n-- Testing rsort() function with more than expected no. of arguments --\n";
19 $array_arg = array(1, 2);
20 $sort_flags = SORT_REGULAR
;
22 var_dump( rsort($array_arg, $sort_flags, $extra_arg) );
24 // dump the input array to ensure that it wasn't changed