Is there exists a similar way in PHP to format DATE, TIME and MONEY values based on a locale?
I need it for any internationalizations in our projects but I do not want to define all local specific formats manuell.
Check from the PHP Manual
For money I think it does not make sense to use functions. It is handled too differently and depends really what you want to do with the numbers. Just use the standard text functions to format the numbers.
Money Format in PHP
try “number_format()” it goes like this;
the two represents how many decimal places you want and the best part is you can put any number of your own.