Lines Matching refs:sprintf
2 Test sprintf() function : error conditions
5 /* Prototype : string sprintf(string $format [, mixed $arg1 [, mixed ...]])
10 echo "*** Testing sprintf() : error conditions ***\n";
13 echo "\n-- Testing sprintf() function with Zero arguments --\n";
14 var_dump( sprintf() );
16 echo "\n-- Testing sprintf() function with less than expected no. of arguments --\n";
24 var_dump( sprintf($format1) );
25 var_dump( sprintf($format2,$arg1) );
26 var_dump( sprintf($format3,$arg1,$arg2) );
29 var_dump( sprintf($format2) );
30 var_dump( sprintf($format3,$arg1) );
33 var_dump( sprintf($format3) );
38 *** Testing sprintf() : error conditions ***
40 -- Testing sprintf() function with Zero arguments --
42 Warning: sprintf() expects at least %d parameter, %d given in %s on line %d
45 -- Testing sprintf() function with less than expected no. of arguments --
47 Warning: sprintf(): Too few arguments in %s on line %d
50 Warning: sprintf(): Too few arguments in %s on line %d
53 Warning: sprintf(): Too few arguments in %s on line %d
56 Warning: sprintf(): Too few arguments in %s on line %d
59 Warning: sprintf(): Too few arguments in %s on line %d
62 Warning: sprintf(): Too few arguments in %s on line %d