@ 2015-09-22T01:03:31Z <?php
$formatter = new NumberFormatter('pt_BR', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'BRL') . PHP_EOL;
$formatter = new NumberFormatter('es_MX', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'MXN') . PHP_EOL;
$formatter = new NumberFormatter('es_AR', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'ARS') . PHP_EOL;
$formatter = new NumberFormatter('es_CL', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'CLP') . PHP_EOL;
$formatter = new NumberFormatter('es_CO', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'COP') . PHP_EOL;
$formatter = new NumberFormatter('es_PA', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'PAB') . PHP_EOL;
$formatter = new NumberFormatter('es_PE', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'PEN') . PHP_EOL;
$formatter = new NumberFormatter('es_VE', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'VEF') . PHP_EOL;
$formatter = new NumberFormatter('es_EC', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency(1256.66, 'ECS') . PHP_EOL;
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.1.28 , 8.2.18 , 8.3.5 - 8.3.6 R$ 1.256,66
$1,256.66
$ 1.256,66
$1.257
$ 1.256,66
B/. 1,256.66
S/ 1,256.66
Bs. 1.256,66
ECS 1.256,66
Output for 5.5.0 - 5.5.38 , 5.6.0 - 5.6.40 , 7.0.0 - 7.0.33 , 7.1.0 - 7.1.33 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 , 7.4.0 - 7.4.32 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 R$1.256,66
$1,256.66
$ 1.256,66
$1.257
$ 1.257
B/.1,256.66
S/.1,256.66
Bs.1.256,66
ECS1.256,66
Output for 8.0.13 Fatal error: Uncaught Error: Class "NumberFormatter" not found in /in/GLvQM:3
Stack trace:
#0 {main}
thrown in /in/GLvQM on line 3
Process exited with code 255 . Output for 7.3.32 - 7.3.33 , 7.4.33 Fatal error: Uncaught Error: Class 'NumberFormatter' not found in /in/GLvQM:3
Stack trace:
#0 {main}
thrown in /in/GLvQM on line 3
Process exited with code 255 . Output for 5.4.0 - 5.4.45 Fatal error: Class 'NumberFormatter' not found in /in/GLvQM on line 3
Process exited with code 255 . preferences:dark mode live preview
258.21 ms | 401 KiB | 376 Q