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