2 /* Prototype : bool shuffle(array $array_arg)
3 * Description: Randomly shuffle the contents of an array
4 * Source code: ext/standard/array.c
8 * Test behaviour of shuffle() when unexpected values are passed for 'array_arg'
9 * argument and verify that function outputs required warning messages wherever applicable
12 echo "*** Testing shuffle() : with unexpected values for 'array_arg' argument ***\n";
15 //get an unset variable
19 //get a resource variable
20 $fp = fopen(__FILE__
, "r");
32 //array of values to iterate over
70 /*21*/ @$undefined_var,
75 /*23*/ // resource data
79 // loop through the array to test shuffle() function
80 // with each element of the array
82 foreach($values as $value) {
83 echo "\n-- Iteration $count --\n";
84 var_dump( shuffle($value) );
88 // closing the resource