2 /* Prototype : int vfprintf ( resource $handle , string $format , array $args )
3 * Description: Write a formatted string to a stream
4 * Source code: ext/standard/formatted_print.c
8 echo "*** Testing vfprintf() : basic functionality - using exponential format ***\n";
10 // Initialise all required variables
14 $format3 = "%e %e %e";
16 $arg2 = array(1000,2000);
17 $arg3 = array(1000,2000,3000);
19 /* creating dumping file */
20 $data_file = dirname(__FILE__
) . '/vfprintf_basic6.phpt.txt';
21 if (!($fp = fopen($data_file, 'wt')))
24 vfprintf($fp, $format1,$arg1);
27 vfprintf($fp, $format2,$arg2);
30 vfprintf($fp, $format3,$arg3);
34 print_r(file_get_contents($data_file));