Hi there everyone,
I'm wrapping up a classifieds system for a site that has an international userbase and I'm working on formatting the inputted price for the user's chosen monetary locale. I'm reading up on money_format, but I'm having two problems. One, I am having a problem finding a list of locales to show the users(I'm trying to find out the needed or most popular locales to code for) and I'm also having problems figuring out how exactly to format the money with the proper monetary symbol. For instance, the manual gives this as an example:
// let's print the international format for the en_US locale
setlocale(LC_MONETARY, 'en_US');
echo money_format('%i', $number) . "\n";
// USD 1,234.56
How might I have it show $1,234.56 USD instead?
thanks for your time,
json