PHPize Online / SQLize Online  /  SQLtest Online

A A A
Share      Blog   Popular

sprintf

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

sprintf — Return a formatted string.

Description

sprintf(
    string $format,
mixed ...$values
): string
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, each of which results in fetching its own parameter.

Return Values

Returns a string produced according to the formatting string format.

sprintf - New snippets