<?php
$number = 1234.56;
// US national format, using () for negative numbers
// and 10 digits for left precision
setlocale(LC_MONETARY, 'en_US');
echo money_format('%(#10n', $number) . "\n";
// ($ 1,234.57)
Fatal error: Uncaught Error: Call to undefined function money_format() in /in/RDIkM:7
Stack trace:
#0 {main}
thrown in /in/RDIkM on line 7
Process exited with code 255.
Output for 7.4.3 - 7.4.33
Deprecated: Function money_format() is deprecated in /in/RDIkM on line 7
$ 1,234.56
Output for 7.4.0
Deprecated: Function money_format() is deprecated in /in/RDIkM on line 7
1234.56