1--TEST--
2Test vprintf() function : basic functionality - integer format
3--FILE--
4<?php
5/*
6 *  Testing vprintf() : basic functionality - using integer format
7*/
8
9echo "*** Testing vprintf() : basic functionality - using integer format ***\n";
10
11// Initialise all required variables
12$format = "format";
13$format1 = "%d";
14$format2 = "%d %d";
15$format3 = "%d %d %d";
16$arg1 = array(111);
17$arg2 = array(111,222);
18$arg3 = array(111,222,333);
19
20$result = vprintf($format1,$arg1);
21echo "\n";
22var_dump($result);
23
24$result = vprintf($format2,$arg2);
25echo "\n";
26var_dump($result);
27
28$result = vprintf($format3,$arg3);
29echo "\n";
30var_dump($result);
31
32?>
33--EXPECT--
34*** Testing vprintf() : basic functionality - using integer format ***
35111
36int(3)
37111 222
38int(7)
39111 222 333
40int(11)
41