MessageFormatter::format msgfmt_format Форматирует сообщение &reftitle.description; &style.oop; public stringfalseMessageFormatter::format arrayvalues &style.procedural; stringfalsemsgfmt_format MessageFormatterformatter arrayvalues Форматирует сообщение, подставляя данные в строку формата в соответствии с правилами локали. &reftitle.parameters; formatter Объект MessageFormatter values Аргументы для вставки в строку формата &reftitle.returnvalues; Отформатированная строка или &false; в случае возникновения ошибки. &reftitle.examples; Пример использования <function>msgfmt_format</function> ]]> Пример использования в объектно-ориентированном стиле 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