setlocale(LC_MONETARY, 'en_US');
echo money_format('%(#1n', $price))
When I use this to format a value to money, it comes out like this $1,000,000.00
I want to remove the zero's to the right of the decimal but I dont know how. I checked the manual and it seems I have to use a '.p' somewhere but I dont know where to place it in the function.
Any ideas?
echo money_format('%(#1n', $price))
When I use this to format a value to money, it comes out like this $1,000,000.00
I want to remove the zero's to the right of the decimal but I dont know how. I checked the manual and it seems I have to use a '.p' somewhere but I dont know where to place it in the function.
Any ideas?