MessageFormatter::format
msgfmt_format
Format the message
&reftitle.description;
&style.oop;
public
string
MessageFormatter::format
arrayargs
&style.procedural;
string
msgfmt_format
MessageFormatterfmt
arrayargs
Format the message by substituting the data into the format string
according to the locale rules
&reftitle.parameters;
fmt
The message formatter
args
Arguments to insert into the format string
&reftitle.returnvalues;
The formatted string, or &false; if an error occurred
&reftitle.examples;
msgfmt_format example
]]>
OO example
format(array(4560, 123, 4560/123));
$fmt = new MessageFormatter("de", "{0,number,integer} Affen auf {1,number,integer} Bäumen sind {2,number} Affen pro Baum");
echo $fmt->format(array(4560, 123, 4560/123));
?>
]]>
&example.outputs;
&reftitle.seealso;
msgfmt_create
msgfmt_parse
msgfmt_format_message
msgfmt_get_error_code
msgfmt_get_error_message