libs/helpers/PriceFormatter.php
public static function format($price, $string = "%2n")
    {
        setlocale(LC_MONETARY, self::$locale);

        if (function_exists("money_format")) {
            return money_format($string, $price);
        } else {
            return $price;
        }
    }
public static function format($price, $string = "%2n")
    {
        setlocale(LC_MONETARY, self::$locale);

        if (function_exists("money_format")) {
            return money_format($string, $price);
        } else {
            return $price;
        }
    }
public static function format ( $ price , $ string = "%2n" ) { setlocale ( LC_MONETARY , self :: $ locale ) ; if ( function_exists ( "money_format" ) ) { return money_format ( $ string , $ price ) ; } else { return $ price ; } }
Format the given price.
@param  type $price
@param  type $string
@return type
Format the given price .