1--TEST--
2Test vprintf() function : basic functionality - float format
3--FILE--
4<?php
5echo "*** Testing vprintf() : basic functionality - using float format ***\n";
6
7// Initialise all required variables
8
9$format = "format";
10$format1 = "%f";
11$format2 = "%f %f";
12$format3 = "%f %f %f";
13
14$format11 = "%F";
15$format22 = "%F %F";
16$format33 = "%F %F %F";
17$arg1 = array(11.11);
18$arg2 = array(11.11,22.22);
19$arg3 = array(11.11,22.22,33.33);
20
21$result = vprintf($format1,$arg1);
22echo "\n";
23var_dump($result);
24
25$result = vprintf($format11,$arg1);
26echo "\n";
27var_dump($result);
28
29$result = vprintf($format2,$arg2);
30echo "\n";
31var_dump($result);
32
33$result = vprintf($format22,$arg2);
34echo "\n";
35var_dump($result);
36
37$result = vprintf($format3,$arg3);
38echo "\n";
39var_dump($result);
40
41$result = vprintf($format33,$arg3);
42echo "\n";
43var_dump($result);
44
45?>
46--EXPECT--
47*** Testing vprintf() : basic functionality - using float format ***
4811.110000
49int(9)
5011.110000
51int(9)
5211.110000 22.220000
53int(19)
5411.110000 22.220000
55int(19)
5611.110000 22.220000 33.330000
57int(29)
5811.110000 22.220000 33.330000
59int(29)
60