import zend standard tests
[hiphop-php.git] / hphp / test / zend / good / ext-standard-strings / vprintf_basic4.php
blob54079038543df72580c7c2d7f00f9c93897209f8
1 <?php
2 /* Prototype : string vprintf(string $format , array $args)
3 * Description: Output a formatted string
4 * Source code: ext/standard/formatted_print.c
5 */
7 echo "*** Testing vprintf() : basic functionality - using bool format ***\n";
9 // Initialise all required variables
10 $format = "format";
11 $format1 = "%b";
12 $format2 = "%b %b";
13 $format3 = "%b %b %b";
14 $arg1 = array(TRUE);
15 $arg2 = array(TRUE,FALSE);
16 $arg3 = array(TRUE,FALSE,TRUE);
18 $result = vprintf($format1,$arg1);
19 echo "\n";
20 var_dump($result);
22 $result = vprintf($format2,$arg2);
23 echo "\n";
24 var_dump($result);
26 $result = vprintf($format3,$arg3);
27 echo "\n";
28 var_dump($result);
31 ===DONE===