MessageFormatter::formatMessagemsgfmt_format_messageQuick format message
&reftitle.description;
&style.oop;
publicstaticstringMessageFormatter::formatMessagestringlocalestringpatternarrayargs
&style.procedural;
stringmsgfmt_format_messagestringlocalestringpatternarrayargs
Quick formatting function that formats the string without having to
explicitly create the formatter object. Use this function when the format
operation is done only once and does not need and parameters or state to be
kept.
&reftitle.parameters;
locale
The locale to use for formatting locale-dependent parts
pattern
The pattern string to insert things into.
The pattern uses an 'apostrophe-friendly' syntax; it is run through
umsg_autoQuoteApostrophe
before being interpreted.
args
The array of values to insert into the format string
&reftitle.returnvalues;
The formatted pattern string or &false; if an error occurred
&reftitle.examples;
msgfmt_format_message example
]]>
OO example
]]>
&example.outputs;
&reftitle.seealso;
msgfmt_createmsgfmt_parsemsgfmt_get_error_codemsgfmt_get_error_message