Fatal error: Call to undefined function money_format


Hi I am new to php and I am building a online store for a friend. Any help or comments would be great.
On my site when i click on my “add to shopping cart” button i get this error:

( ! ) Fatal error: Call to undefined function money_format() in C:\wamp\www\legal-underground\cart.php on line 119

I have tried everything I can think of to fix this error with no results. I have no hair left to pull. here is my code

[php]$pricetotal = money_format("%10.2n", $pricetotal);[/php] any help is greatly appreciated.


money_format() is a function built into php so it may not be compiled in wamp, maybe try another server such as xampp or look up the wamp docs to see if there’s an option for it?


Thanks for you quick reply, I will upload to my hosting account and see if it works there.