PHP » GoLang |
login |
register |
about
|
GoLang MessageFormatter::setPattern
request it (357)
GoLang replacement for PHP's MessageFormatter::setPattern
[edit | history]
PHP MessageFormatter::setPatternPHP original manual for MessageFormatter::setPattern [ show | php.net ]MessageFormatter::setPatternmsgfmt_set_pattern(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) MessageFormatter::setPattern -- msgfmt_set_pattern — Set the pattern used by the formatter DescriptionObject oriented style
public
bool
MessageFormatter::setPattern
( string
$pattern
)Procedural style Set the pattern used by the formatter Parameters
Return Values
Returns ExamplesExample #1 msgfmt_set_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
|