note 120956 added to numberformatter.formatcurrency
| From: | andrewfenn at gmail dot com | Date: | Sun, 09 Apr 2017 09:30:48 +0000 |
| Subject: | note 120956 added to numberformatter.formatcurrency | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209013@lists.php.net to get a copy of this message | ||
Currency symbols seem to have spurious support.
Take for example the Thai Baht symbol.. ฿ which doesn't seem supported in the Thai locale,
but is in other locales such as Chinese Simplified..
<?php
$fmt = new NumberFormatter('th_TH', NumberFormatter::CURRENCY);
echo $fmt->formatCurrency(100, 'THB');
// Outputs: THB 100
$fmt = new NumberFormatter('zh_Hans', NumberFormatter::CURRENCY);
echo $fmt->formatCurrency(100, 'THB');
// Outputs: ฿ 100
?>
----
Server IP: 72.52.91.14
Probable Submitter: 58.136.201.216
----
Manual Page -- http://php.net/manual/en/numberformatter.formatcurrency.php
Edit -- https://master.php.net/note/edit/120956
Del: integrated -- https://master.php.net/note/delete/120956/integrated
Del: useless -- https://master.php.net/note/delete/120956/useless
Del: bad code -- https://master.php.net/note/delete/120956/bad+code
Del: spam -- https://master.php.net/note/delete/120956/spam
Del: non-english -- https://master.php.net/note/delete/120956/non-english
Del: in docs -- https://master.php.net/note/delete/120956/in+docs
Del: other reasons-- https://master.php.net/note/delete/120956
Reject -- https://master.php.net/note/reject/120956
Search -- https://master.php.net/manage/user-notes.php