I cannot work out how to get the currency symbol?
At the moment I am using
setlocale(LC_MONETARY, 'en_GB');
money_format('%i', 1000);
Which give me the output
GBP1,000
But I want
£1,000
I have checked out the PHP manual but it isn’t that helpful.
Any ideas?
Incoming search terms:
- php gbp symbol in regex
- php money_format uk gbp
- php money_format uk pounds

An easy solution could be te replace GBP with & pound ; (without the spaces) after the money_format.
Not familiar with the benefits of money_format, but I would just use number_format instead and just prepend the currency symbol to it.
Use str_replace() function is an option.
£ – British Pound –
£(163)Use str_replace() function is an option.
£ – British Pound –
£(163)