1--TEST--
2Test vsprintf() function : basic functionality - string format
3--FILE--
4<?php
5echo "*** Testing vsprintf() : basic functionality - using string format ***\n";
6
7// Initialise all required variables
8$format = "format";
9$format1 = "%s";
10$format2 = "%s %s";
11$format3 = "%s %s %s";
12$arg1 = array("one");
13$arg2 = array("one","two");
14$arg3 = array("one","two","three");
15
16
17var_dump( vsprintf($format1,$arg1) );
18var_dump( vsprintf($format2,$arg2) );
19var_dump( vsprintf($format3,$arg3) );
20
21echo "Done";
22?>
23--EXPECT--
24*** Testing vsprintf() : basic functionality - using string format ***
25string(3) "one"
26string(7) "one two"
27string(13) "one two three"
28Done
29