1--TEST-- 2Test vsprintf() function : basic functionality - exponential format 3--FILE-- 4<?php 5echo "*** Testing vsprintf() : 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 16var_dump( vsprintf($format1,$arg1) ); 17var_dump( vsprintf($format2,$arg2) ); 18var_dump( vsprintf($format3,$arg3) ); 19 20echo "Done"; 21?> 22--EXPECT-- 23*** Testing vsprintf() : basic functionality - using exponential format *** 24string(11) "1.000000e+3" 25string(23) "1.000000e+3 2.000000e+3" 26string(35) "1.000000e+3 2.000000e+3 3.000000e+3" 27Done 28