How can I format a currency variable to place a comma instead of a dot as the decimal point?
//prints EURO 12.50
echo sprintf('EURO %01.2f',12.5);
//prints EURO 2f
echo sprintf('EURO %01,2f',12.5);
?>
I'm afraid I can't use number_format() here because the system is already in place and would require quite a lot of work to replace (more than it's worth).
Thanks
Bubble