printf

(PHP 3, PHP 4 >= 4.0.0)

printf -- Output a formatted string

Description

void printf ( string format [, mixed args])

Produces output according to format, which is described in the documentation for sprintf().

See also: print(), sprintf(), sscanf(), fscanf(), and flush().