By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,630 Members | 1,126 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,630 IT Pros & Developers. It's quick & easy.

% conversoin character with money_format

P: n/a
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);

Aug 25 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.