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.

Syntax:

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

Reference: https://www.php.net/manual/en/function.money-format.php


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

Related Questions & Answers