\Cake\I18n\FormatterSprintfFormatter

A formatter that will interpolate variables using sprintf and select the correct plural form when required

Summary

Methods
Properties
Constants
format()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

format()

format(string  $locale, string|array  $message, array  $vars) : string

Returns a string with all passed variables interpolated into the original message. Variables are interpolated using the sprintf format.

Parameters

string $locale

The locale in which the message is presented.

string|array $message

The message to be translated

array $vars

The list of values to interpolate in the message

Returns

string —

The formatted message