|
vprintfOutput a formatted string Description
int vprintf(string
$format , array $values )
Display array values as a formatted string according to
Operates as printf but accepts an array of arguments, rather than a variable number of arguments. Parameters
Return ValuesReturns the length of the outputted string. Errors/Exceptions
As of PHP 8.0.0, a ValueError is thrown if the number of arguments is zero.
Prior to PHP 8.0.0, a
As of PHP 8.0.0, a ValueError is thrown if
As of PHP 8.0.0, a ValueError is thrown if
As of PHP 8.0.0, a ValueError is thrown when less arguments are given than required.
Prior to PHP 8.0.0, Changelog
Examples
Example #1 vprintf: zero-padded integers
The above example will output: 1988-08-01 See Also
|