1--TEST--
2Test vsprintf() function : basic functionality - integer format
3--FILE--
4<?php
5/*
6 *  Testing vsprintf() : basic functionality - using integer format
7*/
8
9echo "*** Testing vsprintf() : 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
20var_dump( vsprintf($format1,$arg1) );
21var_dump( vsprintf($format2,$arg2) );
22var_dump( vsprintf($format3,$arg3) );
23
24echo "Done";
25?>
26--EXPECT--
27*** Testing vsprintf() : basic functionality - using integer format ***
28string(3) "111"
29string(7) "111 222"
30string(11) "111 222 333"
31Done
32