|
MessageFormatter::createMessageFormatter::__constructmsgfmt_createConstructs a new Message Formatter DescriptionObject oriented style (method)
public
static
MessageFormatter
MessageFormatter::create
( string
$locale
, string $pattern
)Object oriented style (constructor):
public
MessageFormatter::__construct
( string
$locale
, string $pattern
)Procedural style
MessageFormatter
msgfmt_create
( string
$locale
, string $pattern
)Constructs a new Message Formatter Parameters
Return ValuesThe formatter object ExamplesExample #1 msgfmt_create example
<?php Example #2 OO example
<?php 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
|