% conversoin character with money_format

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Can anyone get the % conversion character to work with money_format()?

This is the only way I can get it to work:

setlocale(LC_MONETARY, 'en_US');
echo money_format('%!.2n%%', 123.4);

However according to the documentation, this should work:

setlocale(LC_MONETARY, 'en_US');
echo money_format('%.2%', 123.4);

Site Timeline