1--TEST-- 2Test vprintf() function : basic functionality - string format 3--FILE-- 4<?php 5echo "*** Testing vprintf() : 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 17$result = vprintf($format1,$arg1); 18echo "\n"; 19var_dump($result); 20$result = vprintf($format2,$arg2); 21echo "\n"; 22var_dump($result); 23$result = vprintf($format3,$arg3); 24echo "\n"; 25var_dump($result); 26 27?> 28--EXPECT-- 29*** Testing vprintf() : basic functionality - using string format *** 30one 31int(3) 32one two 33int(7) 34one two three 35int(13) 36