2
When using money_format in windows, the function does not work because the function is only compatible with strfmon systems.
$number = 1234.56;
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number) . "\n";
// USD 1,234.56
The code above works in MAC and Linux environment, but not in windows. What alternative can I arrange?