3 /* Prototype : int strlen ( string $string )
4 * Description: Get string length
5 * Source code: ext/standard/string.c
8 echo "*** Testing strlen() : with unexpected input 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,
67 //defining '$pad_length' argument
70 // loop through with each element of the $inputs array to test strlen() function
72 foreach($inputs as $input) {
73 echo "-- Iteration $count --\n";
74 var_dump( strlen($input) );
78 fclose($file_handle); //closing the file handle