|
MessageFormatter::getPatternmsgfmt_get_patternGet the pattern used by the formatter DescriptionObject oriented style
public
string
MessageFormatter::getPattern
( void
)
Procedural style
string
msgfmt_get_pattern
( MessageFormatter
$fmt
)Get the pattern used by the formatter Parameters
Return ValuesThe pattern string for this message formatter ExamplesExample #1 msgfmt_get_pattern example
<?php Example #2 OO example
<?php The above example will output: Default pattern: '{0,number} monkeys on {1,number} trees' Formatting result: 123 monkeys on 456 trees New pattern: '{0,number} trees hosting {1,number} monkeys' Formatted number: 123 trees hosting 456 monkeys See Also
|