- Output for 7.0.0 - 7.0.31, 7.1.0 - 7.1.21, 7.2.0 - 7.2.9
- Parse error: syntax error, unexpected ')', expecting variable (T_VARIABLE) in /in/0BaGN on line 7
Process exited with code 255.
<?php
function functionName(number) {
$formatter = new NumberFormatter('en_US', NumberFormatter::CURRENCY);
echo $formatter->formatCurrency($number, 'USD');
}
functionName(232323223);