PHP | money_format() Function Example

Posted by Editorial Staff | Updated on

The money_format() function is a builtin function which formats a number as a currency string.


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

Example #1 money_format() Example


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers