|
MessageFormatter::parseMessagemsgfmt_parse_messageQuick 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
|