BCAV_WEB Posted October 21, 2010 Share Posted October 21, 2010 Hi anyone have any idea how to get the money_format to show the pound symbol rather than the letters GBP. This is the coding I have so far. [ setlocale(LC_MONETARY, 'en_GB'); $fmt = '%i'; echo money_format($fmt, 1000 ); ] This displays GBP 1,000.00 What am I missing or are you not capable of making the £ symbol appear. Thoughts please Link to comment https://forums.phpfreaks.com/topic/216468-money_format-how-to-have-%C2%A3-rather-than-gbp/ Share on other sites More sharing options...
Pikachu2000 Posted October 21, 2010 Share Posted October 21, 2010 The only way I've ever figured out to do that was to suppress the 'GBP' in the function with the ! flag, and concatenate the symbol instead. Link to comment https://forums.phpfreaks.com/topic/216468-money_format-how-to-have-%C2%A3-rather-than-gbp/#findComment-1124878 Share on other sites More sharing options...
BCAV_WEB Posted October 22, 2010 Author Share Posted October 22, 2010 mmm... I did think about putting the figures in the number format rather than money and then simply put the html coding £ but I was hoping for a proper soultion rather than a work around I know that you can have the $ sign, but why not £ or even the euro symbol (I forgot the keyboard shortcut ) Link to comment https://forums.phpfreaks.com/topic/216468-money_format-how-to-have-%C2%A3-rather-than-gbp/#findComment-1125161 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.