note 126488 added to numberformatter.parsecurrency

From: Date: Fri, 08 Oct 2021 13:16:44 +0000
Subject: note 126488 added to numberformatter.parsecurrency
Groups: php.notes 
Request: Send a blank email to php-notes+get-217046@lists.php.net to get a copy of this message
The example above is wrong, you have to use formatCurrency instead of parseCurrency $region = 'fr_FR'; $currency = 'EUR'; $formatter = new \NumberFormatter($region, \NumberFormatter::CURRENCY); $formatter->formatCurrency(12543.67, $currency); ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 195.190.27.72) ---- Manual Page -- https://php.net/manual/en/numberformatter.parsecurrency.php Edit -- https://main.php.net/note/edit/126488 Del: integrated -- https://main.php.net/note/delete/126488/integrated Del: useless -- https://main.php.net/note/delete/126488/useless Del: bad code -- https://main.php.net/note/delete/126488/bad+code Del: spam -- https://main.php.net/note/delete/126488/spam Del: non-english -- https://main.php.net/note/delete/126488/non-english Del: in docs -- https://main.php.net/note/delete/126488/in+docs Del: other reasons-- https://main.php.net/note/delete/126488 Reject -- https://main.php.net/note/reject/126488 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#217046) next »