When using money_format on 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 above code works in the MAC and Linux environment, but not in windows. What alternative can I get?