sprintf

sprintf

(PHP 4, PHP 5, PHP 7)

sprintfReturn a formatted string

Description

string sprintf ( string $format [, mixed $args [, mixed $... ]] )

Returns a string produced according to the formatting string format.

Parameters

format

The format string is composed of zero or more directives: ordinary characters (excluding %) that are copied directly to the result, and conversion specifications<