PHP string money_format() FunctionPHP money_format() function is predefined function. It is used formats number as a currency string. It returns a formatted version of number. It wraps the C library function strfmon() and often used with the setlocale() function. Note: This function does not work on windows platforms.Syntax:
Example 1Output: Your number is:1234.56 By using money_format() function:1.234,56 EUR Example 2Output: Your number is:-1234.5672 By using money_format() function:(******1234.57) Example 3Output: Your number is:-1234.5672 By using money_format() function:-USD 1,234.57 Example 4Output: Your number is:-1234.5672 By using money_format() function:-EUR 1.234,57 Next TopicPHP String |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India