Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

numberformater php format to k and m


<?php
$fmt = new NumberFormatter( 'de_DE', NumberFormatter::CURRENCY );
echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."
";
echo $fmt->formatCurrency(1234567.891234567890000, "RUR")."
";
$fmt = new NumberFormatter( 'ru_RU', NumberFormatter::CURRENCY );
echo $fmt->formatCurrency(1234567.891234567890000, "EUR")."
";
echo $fmt->formatCurrency(1234567.891234567890000, "RUR")."
";
?>

Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #numberformater #php #format
ADD COMMENT
Topic
Name
6+8 =