--TEST-- Test vprintf() function : usage variations - char formats with non-char values --FILE-- "12twelve"), array("3"), array("4"), array("1"), array("2") ), // array of boolean data array( true, TRUE, false, TRUE, FALSE, 1, true, false, TRUE, FALSE, 0, 1, 1, 0, 1, TRUE, 0, FALSE), ); // looping to test vprintf() with different char formats from the above $format array // and with non-char values from the above $args_array array $counter = 1; foreach($args_array as $args) { echo "\n-- Iteration $counter --\n"; $result = vprintf($formats, $args); echo "\n"; var_dump($result); $counter++; } ?> --EXPECTF-- *** Testing vprintf() : char formats and non-char values *** -- Iteration 1 -- A ¿ B ] ~ ‚ # Ý à Ã = 2 Ê B ] A ¿ int(47) -- Iteration 2 -- A ¿ B © ~ ‚ # Ý à Ã = 2 Ê B © A ¿ int(47) -- Iteration 3 -- %0 %0 %0 { … { %0 %0 @ %0 Ò %0 %0 %0 %0 { %0 %0 int(47) -- Iteration 4 --                   int(47) -- Iteration 5 --   %0  %0   %0  %0 %0   %0 %0    int(47)