PHP printf() Function

The printf() function outputs a formatted string.The arg1, arg2, ++ parameters will be inserted at percent (%) signs in the main string. This function works "step-by-step". At the first % sign, arg1 is inserted, at the second % sign, arg2 is inserted, etc.

int printf ( string $format [, mixed $args [, mixed $... ]] )

Produces output according to format.

Example -

ParameterDescription
formatSee sprintf() for a description of format.
args...

Returns the length of the outputted string.