I'm trying to display a spanish price. Spanish prices have the currency symbol AFTER the number, but Symfony insists in placing it before...
Is there any way to move it after the number?
Thanks!
I'm trying to display a spanish price. Spanish prices have the currency symbol AFTER the number, but Symfony insists in placing it before...
Is there any way to move it after the number?
Thanks!
You need to pass the format_currency
function the culture parameter:
<?php echo format_currency('30.00', '€', 'es_ES'); ?>
will produce:
30.00€
Here, 'es_ES' is your country and language combination. If you are unfamiliar with this then read up on symfony and cultures.