note 110982 added to numberformatter.parsecurrency

From: Date: Wed, 02 Jan 2013 08:38:55 +0000
Subject: note 110982 added to numberformatter.parsecurrency
Groups: php.notes 
Request: Send a blank email to php-notes+get-192733@lists.php.net to get a copy of this message
I don’t believe it is a bug. The problem is the example code. It errors when you copy it. There is some invisible invalid character between the space and the dollar sign, I believe. Try to replace the space character and the dollar sign in the $num variable, typing it. You can also check it with this code: <?php $fmt = new \NumberFormatter('de_DE', \NumberFormatter::CURRENCY); $num = "1.234.567,89 $"; print "We have ".$fmt->parseCurrency($num, $curr)." in $curr\n"; ?> ---- Server IP: 69.147.83.199 Probable Submitter: 85.220.28.229 ---- Manual Page -- http://php.net/manual/en/numberformatter.parsecurrency.php Edit -- https://master.php.net/note/edit/110982 Del: integrated -- https://master.php.net/note/delete/110982/integrated Del: useless -- https://master.php.net/note/delete/110982/useless Del: bad code -- https://master.php.net/note/delete/110982/bad+code Del: spam -- https://master.php.net/note/delete/110982/spam Del: non-english -- https://master.php.net/note/delete/110982/non-english Del: in docs -- https://master.php.net/note/delete/110982/in+docs Del: other reasons-- https://master.php.net/note/delete/110982 Reject -- https://master.php.net/note/reject/110982 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#192733) next »