/** * Converts a numeric value to a signed currency string */ public static function toCurrency($value = 0, $decimal = ".", $thousand = ",", $symbol = "\$") { $value = Sanitize::toFloat($value); return trim($symbol . number_format($value, 2, $decimal, $thousand)); }