|
MessageFormatter::createMessageFormatter::__constructmsgfmt_createConstructs a new Message Formatter DescriptionObject-oriented style (method)
public static MessageFormatternull MessageFormatter::create(string
$locale , string $pattern )Object-oriented style (constructor): public MessageFormatter::__construct(string
$locale , string $pattern )Procedural style MessageFormatternull msgfmt_create(string
$locale , string $pattern )Constructs a new Message Formatter Parameters
Return Values
The formatter object, or Errors/ExceptionsWhen invoked as constructor, on failure an IntlException is thrown. ExamplesExample #1 msgfmt_create example
Example #2 OO example
The above example will output: 4,560 monkeys on 123 trees make 37.073 monkeys per tree 4.560 Affen auf 123 Bäumen sind 37,073 Affen pro Baum See Also
|