Inflector.php
public static function priceToStringLong($price, $keepFloat = true, $currency = "uah", $language = null) {
        if ($language == null) $language = self::$_defaultLanguage;
        if (empty(self::$_numbersScript[$language]) || empty(self::$_numbersScript[$language]['sign'][$currency])) {
            trigger_error('You do not have a "'.$language.'/'.$currency.'" version for price labels. Add it via Inflector::addNumberLocalization');
        }

        $segments = array_merge(self::$_numbersScript[$language]['sign'][$currency], self::$_numbersScript[$language]['segments']);

        return self::_numberToString($price, self::$_numbersScript[$language]['forms'], self::$_numbersScript[$language]['sex'], $segments, $keepFloat);
    }
public static function priceToStringLong($price, $keepFloat = true, $currency = "uah", $language = null) {
        if ($language == null) $language = self::$_defaultLanguage;
        if (empty(self::$_numbersScript[$language]) || empty(self::$_numbersScript[$language]['sign'][$currency])) {
            trigger_error('You do not have a "'.$language.'/'.$currency.'" version for price labels. Add it via Inflector::addNumberLocalization');
        }

        $segments = array_merge(self::$_numbersScript[$language]['sign'][$currency], self::$_numbersScript[$language]['segments']);

        return self::_numberToString($price, self::$_numbersScript[$language]['forms'], self::$_numbersScript[$language]['sex'], $segments, $keepFloat);
    }
public static function priceToStringLong ( $ price , $ keepFloat = true , $ currency = "uah" , $ language = null ) { if ( $ language == null ) $ language = self :: $ _defaultLanguage ; if ( empty ( self :: $ _numbersScript [ $ language ] ) || empty ( self :: $ _numbersScript [ $ language ] [ 'sign' ] [ $ currency ] ) ) { trigger_error ( 'You do not have a "' . $ language . '/' . $ currency . '" version for price labels. Add it via Inflector::addNumberLocalization' ) ; } $ segments = array_merge ( self :: $ _numbersScript [ $ language ] [ 'sign' ] [ $ currency ] , self :: $ _numbersScript [ $ language ] [ 'segments' ] ) ; return self :: _numberToString ( $ price , self :: $ _numbersScript [ $ language ] [ 'forms' ] , self :: $ _numbersScript [ $ language ] [ 'sex' ] , $ segments , $ keepFloat ) ; }
Convert price to string and add localized money label
@param $price
@param bool $keepFloat
@param string $currency
@param string $language by default overwritten by Inflector's default language
@return mixed
Convert price to string and add localized money label