I am using Laravel 4 on TurnkeyLinux and trying to get money_format to display currency in a localized way.
money_format('%.2n', 1222002.09) returns 1222002.09.
In app / strart / global.php, I have App::setLocale(Session::get('locale', 'en')); , this changes the language using Laravel language files, but does not affect the currency.
I found that localeconv(); displays an almost empty array (only a decimal point is set), and use setLocale(LC_ALL, 'en_GB', 'en_GB'); has no effect.
I am on PHP 5.4.4 and Debian 3.2.57.
source share