I am trying to convert a numeric string to Indian Number System (Lakhs format) and for this I googled and tried the following code.
This code part gave me correct output when tested in a linux shared hosting server, but it is not working in windows shared hosting, not sure if this is due to some version problem, any clue if there is any alternative to setlocate
?
$amount = '120090';
setlocale(LC_MONETARY, 'en_IN');
$amount = money_format('%!i', $amount);
print $amount;