string vsprintf ( string $format , array $args )
Return a formatted string
Operates as sprintf() but accepts an array of arguments, rather than a variable number of arguments.
<?php
print vsprintf("%04d-%02d-%02d", explode('-', '1988-8-1')); // 1988-08-01
?>
0 Comment:
Post a Comment