Read Time:17 Second
Alternative code snippet for money_format
function money_format_alt($amount, $decimal, $symbol = '$', $symbol_right = '', $symbol_thousands = ',', $symbol_decimal = '.') { if ($amount < 0) return '-'.$symbol . (number_format(abs($amount), $decimal, $symbol_decimal, $symbol_thousands)) . $symbol_right; return $symbol.number_format($amount, $decimal, $symbol_decimal, $symbol_thousands).$symbol_right; }