You are here : phpstringvsprintf

vsprintf() - string

Operates as sprintf() but accepts an array of arguments, rather than a variable number of arguments.
Parameters :

  • format - See sprintf() for a description of format.
  • args -


Syntax

string vsprintf( string $format, array $args)


Example

<?php
	print vsprintf("%04d-%02d-%02d", explode('-', '1988-8-1')); // 1988-08-01
?>


Output / Return Value


Limitations


Alternatives / See Also


Reference