PHPize Online / SQLize Online
A A A

Donate Popular

printf

Tags: PHP 5.x PHP 7.x PHP 8.x

printf — Output a formatted string.

Description

printf(
    string $format,
mixed ...$values
): int
Produces output according to 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, each of which results in fetching its own parameter. A conversion specification follows this prototype: %[argnum$][flags][width][.precision]specifier.

Return Values

Returns the length of the outputted string.

printf - New snippets