PHP » GoLang |
login |
register |
about
|
GoLang MessageFormatter::parseMessage
request it (387)
GoLang replacement for PHP's MessageFormatter::parseMessage
[edit | history]
PHP MessageFormatter::parseMessagePHP original manual for MessageFormatter::parseMessage [ show | php.net ]MessageFormatter::parseMessagemsgfmt_parse_message(PHP 5 >= 5.3.0, PHP 7, PECL intl >= 1.0.0) MessageFormatter::parseMessage -- msgfmt_parse_message — Quick parse input string DescriptionObject oriented style
public
static
array
MessageFormatter::parseMessage
( string
$locale
, string $pattern
, string $source
)Procedural style
array
msgfmt_parse_message
( string
$locale
, string $pattern
, string $value
)Parses input string without explicitly creating 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
An array containing items extracted, or ExamplesExample #1 msgfmt_parse_message() example
<?php Example #2 OO example
<?php The above example will output: array ( 0 => 4560, 1 => 123, 2 => 37.073, ) array ( 0 => 4560, 1 => 123, 2 => 37.073, ) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|