Lines Matching refs:sprintf
2 Test sprintf() function : basic functionality - hexadecimal format
5 echo "*** Testing sprintf() : basic functionality - using hexadecimal format ***\n";
23 // Calling sprintf() with default arguments
24 var_dump( sprintf($format) );
26 // Calling sprintf() with two arguments
27 var_dump( sprintf($format1, $arg1) );
28 var_dump( sprintf($format11, $arg1) );
30 // Calling sprintf() with three arguments
31 var_dump( sprintf($format2, $arg1, $arg2) );
32 var_dump( sprintf($format22, $arg1, $arg2) );
34 // Calling sprintf() with four arguments
35 var_dump( sprintf($format3, $arg1, $arg2, $arg3) );
36 var_dump( sprintf($format33, $arg1, $arg2, $arg3) );
41 *** Testing sprintf() : basic functionality - using hexadecimal format ***