3 /* Prototype : string str_shuffle ( string $str )
4 * Description: Randomly shuffles a string
5 * Source code: ext/standard/string.c
8 echo "*** Testing str_shuffle() function: with unexpected inputs for 'string' argument ***\n";
10 //get an unset variable
11 $unset_var = 'string_val';
16 public function __toString() {
17 return "sample object";
21 //getting the resource
22 $file_handle = fopen(__FILE__
, "r");
24 // array with different values for $input
61 /*20*/ @$undefined_var,
68 // loop through with each element of the $inputs array to test str_shuffle() function
70 foreach($inputs as $input) {
71 echo "-- Iteration $count --\n";
72 var_dump( str_shuffle($input) );
76 fclose($file_handle); //closing the file handle