2 /* Prototype : int printf ( string $format [, mixed $args [, mixed $... ]] )
3 * Description: Produces output according to format .
4 * Source code: ext/standard/formatted_print.c
7 echo "*** Testing printf() : basic functionality - using char format ***\n";
10 // Initialise all required variables
14 $format3 = "%c %c %c";
19 echo "\n-- Calling printf() with no arguments --\n";
20 $result = printf($format);
24 echo "\n-- Calling printf() with one arguments --\n";
25 $result = printf($format1, $arg1);
29 echo "\n-- Calling printf() with two arguments --\n";
30 $result = printf($format2, $arg1, $arg2);
34 echo "\n-- Calling printf() with three arguments --\n";
35 $result = printf($format3, $arg1, $arg2, $arg3);