1--TEST-- 2Test vfprintf() function : basic functionality - exponential format 3--FILE-- 4<?php 5echo "*** Testing vfprintf() : basic functionality - using exponential format ***\n"; 6 7// Initialise all required variables 8$format = "format"; 9$format1 = "%e"; 10$format2 = "%e %e"; 11$format3 = "%e %e %e"; 12$arg1 = array(1000); 13$arg2 = array(1000,2000); 14$arg3 = array(1000,2000,3000); 15 16/* creating dumping file */ 17$data_file = __DIR__ . '/vfprintf_basic6.txt'; 18if (!($fp = fopen($data_file, 'wt'))) 19 return; 20 21vfprintf($fp, $format1,$arg1); 22fprintf($fp, "\n"); 23 24vfprintf($fp, $format2,$arg2); 25fprintf($fp, "\n"); 26 27vfprintf($fp, $format3,$arg3); 28fprintf($fp, "\n"); 29 30fclose($fp); 31print_r(file_get_contents($data_file)); 32 33unlink($data_file); 34 35?> 36--EXPECT-- 37*** Testing vfprintf() : basic functionality - using exponential format *** 381.000000e+3 391.000000e+3 2.000000e+3 401.000000e+3 2.000000e+3 3.000000e+3 41