MessageFormatter::create MessageFormatter::__construct msgfmt_create Constructs a new Message Formatter &reftitle.description; Object oriented style (method) MessageFormatter MessageFormatter::create stringlocale stringpattern Object oriented style (constructor): MessageFormatter::__construct stringlocale stringpattern Procedural style MessageFormatter msgfmt_create stringlocale stringpattern Constructs a new Message Formatter &reftitle.parameters; locale The locale to use when formatting arguments pattern The pattern string to stick arguments into. The pattern uses an 'apostrophe-friendly' syntax; it is run through umsg_autoQuoteApostrophe before being interpreted. &reftitle.returnvalues; The formatter object &reftitle.examples; <function>msgfmt_create</function> 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_format msgfmt_parse msgfmt_get_error_code msgfmt_get_error_message