I am trying to use the money_format()
function in PHP, but it gives the following error:
Fatal error: Call to undefined function money_format()
Searches about this error reveal that the function money_format()
is only defined if the system has strfmon
capabilities (for example, Windows does not) and also that the function has been removed from PHP 8.0.
Is there an equivalent PHP function available?
See Question&Answers more detail:os