2 /* Prototype : string base_convert ( string $number , int $frombase , int $tobase )
3 * Description: Convert a number between arbitrary bases.
4 * Source code: ext/standard/math.c
7 echo "*** Testing base_convert() : usage variations ***\n";
9 //get an unset variable
19 // get a resource variable
20 $fp = fopen(__FILE__
, "r");
58 /*23*/ @$undefined_var,
67 // loop through each element of $inputs to check the behaviour of base_convert()
69 foreach($inputs as $input) {
70 echo "\n-- Iteration $iterator --\n";
71 var_dump(base_convert($input, 10, 8));