Lines Matching refs:sprintf
2 Test sprintf() function : basic functionality - float format
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : basic functionality - using float format ***\n";
27 // Calling sprintf() with default arguments
28 var_dump( sprintf($format) );
30 // Calling sprintf() with two arguments
31 var_dump( sprintf($format1, $arg1) );
32 var_dump( sprintf($format11, $arg1) );
34 // Calling sprintf() with three arguments
35 var_dump( sprintf($format2, $arg1, $arg2) );
36 var_dump( sprintf($format22, $arg1, $arg2) );
38 // Calling sprintf() with four arguments
39 var_dump( sprintf($format3, $arg1, $arg2, $arg3) );
40 var_dump( sprintf($format33, $arg1, $arg2, $arg3) );
45 *** Testing sprintf() : basic functionality - using float format ***