Home » » vsprintf

vsprintf

Written By 1 on Tuesday, October 2, 2012 | 8:57 AM

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