Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php numberformatter currency without symbol

// change symbol to whatever you want, nothing to no-symbol
$fmt = new NumberFormatter('en_GB',  NumberFormatter::CURRENCY);
$fmt->setSymbol(NumberFormatter::CURRENCY_SYMBOL, '');
echo $fmt->formatCurrency($price, 'EUR');
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #numberformatter #currency #symbol
ADD COMMENT
Topic
Name
2+3 =