|
MessageFormatter::getPatternmsgfmt_get_patternGet the pattern used by the formatter DescriptionObject-oriented style
public stringfalse MessageFormatter::getPattern()
Procedural style stringfalse msgfmt_get_pattern(MessageFormatter
$formatter )Get the pattern used by the formatter Parameters
Return Values
The pattern string for this message formatter, or ExamplesExample #1 msgfmt_get_pattern example
Example #2 OO example
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
|