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