vsprintf

Return a formatted string

&reftitle.description; `string` `vsprintf` `string` `format` `array` `values`

Operates as `sprintf` but accepts an array of arguments, rather than a variable number of arguments.

&reftitle.parameters;

&strings.parameter.format;

`values`

&reftitle.returnvalues;

Return array values as a formatted string according to `format`.

&reftitle.errors; &strings.errors.vsprintf;
&reftitle.changelog; &strings.changelog.vsprintf;
&reftitle.examples;

### `vsprintf`: zero-padded integers

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

&example.outputs;

    1988-08-01

&reftitle.seealso;

- `printf`
- `sprintf`
- `fprintf`
- `vprintf`
- `vfprintf`
- `sscanf`
- `fscanf`
- `number_format`
- `date`