note 124153 added to numberformatter.setsymbol
| From: | vreemt+phpnet at gmail dot com | Date: | Thu, 29 Aug 2019 15:55:59 +0000 |
| Subject: | note 124153 added to numberformatter.setsymbol | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-212033@lists.php.net to get a copy of this message | ||
this could be obvious to some, but
setSymbol(NumberFormatter::CURRENCY_SYMBOL,
'') doesn't work for formatCurrency - it will simply be
ignored...
use NumberFormatter::CURRENCY and $fmt->format(123); to get a currency
value with the symbol specified as CURRENCY_SYMBOL (or
INTL_CURRENCY_SYMBOL)
----
Server IP: 208.43.231.9
Probable Submitter: 185.85.3.195 (proxied: 78.137.119.4)
----
Manual Page -- http://php.net/manual/en/numberformatter.setsymbol.php
Edit -- https://master.php.net/note/edit/124153
Del: integrated -- https://master.php.net/note/delete/124153/integrated
Del: useless -- https://master.php.net/note/delete/124153/useless
Del: bad code -- https://master.php.net/note/delete/124153/bad+code
Del: spam -- https://master.php.net/note/delete/124153/spam
Del: non-english -- https://master.php.net/note/delete/124153/non-english
Del: in docs -- https://master.php.net/note/delete/124153/in+docs
Del: other reasons-- https://master.php.net/note/delete/124153
Reject -- https://master.php.net/note/reject/124153
Search -- https://master.php.net/manage/user-notes.php