|
MessageFormatter::parseMessagemsgfmt_parse_messageQuick parse input string DescriptionObject-oriented style
public static arrayfalse MessageFormatter::parseMessage(string
$locale , string $pattern , string $message )Procedural style arrayfalse msgfmt_parse_message(string
$locale , string $pattern , string $message )Parses input string without explicitly creating the formatter object. Use this function when the format operation is done only once and does not need any parameters or state to be kept. Parameters
Return Values
An array containing items extracted, or ExamplesExample #1 msgfmt_parse_message example
Example #2 OO example
The above example will output: array ( 0 => 4560, 1 => 123, 2 => 37.073, ) array ( 0 => 4560, 1 => 123, 2 => 37.073, ) See Also
|