Anonymous user / 54.236.245.71 Log In Register
?
Wallet: 3.00
Daily Credits:
1.20 / 1.20

PHP Functions Online


vsprintf

(PHP 4 >= 4.1.0, PHP 5)

vsprintfReturn a formatted string

string vsprintf(string $format , array $args)

Checkout ? #

Item Description Item Price Your Price
Total

Preview #

${{ variable.param.name }} = {{ variable.param|getValue:variable.form:true }};
{{ call.result}} = ;

Description #

string vsprintf ( string $format , array $args )

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

Return Values #

Return array values as a formatted string according to format (which is described in the documentation for sprintf()).

Examples #

Example #1 vsprintf(): zero-padded integers

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

See Also #