Я читал в Интернете об этой проблеме, и, видимо, вам нужен PHP 5.3 или выше, а также установлен плагин PHP intl. У меня есть оба из них, но я все еще получаю ошибку «Неустранимая ошибка: класс 'NumberFormatter' не найден» всякий раз, когда я использую следующую функцию:
Код: Выделить всё
function format_item($value)
{
$format = new \NumberFormatter('en_US', \NumberFormatter::CURRENCY);
return $format->formatCurrency($value, 'AUD');
}
Код: Выделить всё
[intl]
intl.default_locale = fr_FR
; This directive allows you to produce PHP errors when some error
; happens within intl functions. The value is the level of the error produced.
; Default is 0, which does not produce any errors.
intl.error_level = E_WARNING
Почему я получаю эту ошибку?
Подробнее здесь: https://stackoverflow.com/questions/305 ... -not-found
Мобильная версия