PHP money_format() is an inbuilt function that returns the string formatted as the currency string. The money_format() function inserts a formatted number where there is a percent (%) sign in the main string. PHP money_format() function is predefined function. It is used formats number as a currency string. It returns a formatted version of the number. The money_format() function does not work on the Windows platforms.

PHP money_format()

The money_format() returns a formatted version of the number. The money_format() function wraps the C library function strfmon(), with a difference that this implementation converts only one number at a time. See the following syntax.

money_format(string, number)

#php #php money_format()

PHP money_format() Function Example Tutorial
1.35 GEEK