PHP » GoLang |
login |
register |
about
|
GoLang MessageFormatter::formatMessage
request it (344)
GoLang replacement for PHP's MessageFormatter::formatMessage
[edit | history]
PHP MessageFormatter::formatMessagePHP original manual for MessageFormatter::formatMessage [ show | php.net ]MessageFormatter::formatMessagemsgfmt_format_message(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) MessageFormatter::formatMessage -- msgfmt_format_message — Quick format message DescriptionObject oriented style
public
static
string
MessageFormatter::formatMessage
( string
$locale
, string $pattern
, array $args
)Procedural style
string
msgfmt_format_message
( string
$locale
, string $pattern
, array $args
)Quick formatting function that formats the string without having to explicitly create the formatter object. Use this function when the format operation is done only once and does not need and parameters or state to be kept. Parameters
Return Values
The formatted pattern string or ExamplesExample #1 msgfmt_format_message() 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
|
more
Recently updated
more
Most requested
more
Last requests
|