Created
December 1, 2016 22:55
-
-
Save meysampg/0651ff3f82009b441252ccc0574fd009 to your computer and use it in GitHub Desktop.
Convert a number to Iranian Currency
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$iranMoney = function ($m) { | |
setlocale(LC_MONETARY, 'fa_IR'); | |
return str_replace('IRR', 'ریال', money_format('%i', $m)); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment