1--TEST--
2Test vprintf() function : basic functionality - string format
3--FILE--
4<?php
5/* Prototype  : int vprintf(string $format , array $args)
6 * Description: Output a formatted string
7 * Source code: ext/standard/formatted_print.c
8*/
9
10echo "*** Testing vprintf() : basic functionality - using string format ***\n";
11
12// Initialise all required variables
13$format = "format";
14$format1 = "%s";
15$format2 = "%s %s";
16$format3 = "%s %s %s";
17$arg1 = array("one");
18$arg2 = array("one","two");
19$arg3 = array("one","two","three");
20
21
22$result = vprintf($format1,$arg1);
23echo "\n";
24var_dump($result);
25$result = vprintf($format2,$arg2);
26echo "\n";
27var_dump($result);
28$result = vprintf($format3,$arg3);
29echo "\n";
30var_dump($result);
31
32?>
33===DONE===
34--EXPECT--
35*** Testing vprintf() : basic functionality - using string format ***
36one
37int(3)
38one two
39int(7)
40one two three
41int(13)
42===DONE===
43