money_format doesn’t work on windows, at least from what I read in the manual..but I was given this app, wherein it uses money_format(), i guess it doesn’t have a problem on a production server because probably it’s using linux. but I can’t develop it in my local coz it throws a fatal error..any alternative built-in function for this? or any code snippets you might wanna share to me?
<?php echo money_format('%n', $_SESSION["shoppingbag"]->getSubTotal()); ?>
Closest you can get is number_format
If you need it just to be able to develop on windows you can simply do: