PHP » GoLang |
login |
register |
about
|
GoLang MessageFormatter::getPattern
request it (278)
GoLang replacement for PHP's MessageFormatter::getPattern
[edit | history]
PHP MessageFormatter::getPatternPHP original manual for MessageFormatter::getPattern [ show | php.net ]MessageFormatter::getPatternmsgfmt_get_pattern(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) MessageFormatter::getPattern -- msgfmt_get_pattern — Get the pattern used by the formatter DescriptionObject oriented style
public
string
MessageFormatter::getPattern
( void
)
Procedural style 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
|
more
Recently updated
more
Most requested
more
Last requests
|