public static function formatAsMoney($value, $currencySymbol = "&pound;", $roundToInteger = false) {
        if (is_numeric($value))
            return $currencySymbol . number_format($value, $roundToInteger ? 0 : 2, ".", "");
        else
            return null;
    }
public static function formatAsMoney($value, $currencySymbol = "&pound;", $roundToInteger = false) {
        if (is_numeric($value))
            return $currencySymbol . number_format($value, $roundToInteger ? 0 : 2, ".", "");
        else
            return null;
    }
public static function formatAsMoney ( $ value , $ currencySymbol = "&pound;" , $ roundToInteger = false ) { if ( is_numeric ( $ value ) ) return $ currencySymbol . number_format ( $ value , $ roundToInteger ? 0 : 2 , "." , "" ) ; else return null ; }
Convenience function for formatting a number as money using the supplied currency symbol

@param $value
@param string $currencySymbol
Convenience function for formatting a number as money using the supplied currency symbol