|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-03-06 13:05 UTC] stas at zend dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 10:00:01 2025 UTC |
Description: ------------ Java's MessageFormat treats ' (single quote) as escape character, so this: <?php $fmt = new MessageFormatter("en_US", "Jack's mother is {1, number} years old "); echo "result is:". $fmt->format(array(70)); echo "pattern is:".$fmt->getPattern()."\n"; ?> would produce: result is:Jacks mother is {1, number} years old pattern is:Jacks mother is '{'1, number} years old See also: http://bugs.sun.com/view_bug.do?bug_id=4862106