I am using the money_format() function in PHP, which gives the following error:
money_format()
Fatal error: Call to undefined function money_format() >
Fatal error: Call to undefined function money_format()
3) ? $j % 3 : 0; return $symbol.$sign .($j ? substr($i,0, $j) + $t : '').preg_replace('/(\d{3})(?=\d)/',"$1" + $t,substr($i,$j)) ; } echo toMoney(9856478521456.256); ?>
try this the out put of above code is "$9,856,478,521,456.26"