php - Fatal error: Class 'NumberFormatter' not found -
i've been using exact same code ages, , have never had single problem. of sudden has stopped working.
i have read across internet problem, , apparently need php 5.3 or higher installed, , php intl plugin installed. have both of these, yet still receiving fatal error: class 'numberformatter' not found error whenever use following function:
function format_item($value) { $format = new \numberformatter('en_us', \numberformatter::currency); return $format->formatcurrency($value, 'aud'); } also, here snippit php.ini file showing have php intl plugin installed:
[intl] intl.default_locale = fr_fr ; directive allows produce php errors when error ; happens within intl functions. value level of error produced. ; default 0, not produce errors. intl.error_level = e_warning i have extension=php_intl.dll in php.ini, , in directory.
why getting error?
you need enable extension in php.ini uncommenting line: extension=ext/php_intl.dll
for more details visit, enable intl extension
Comments
Post a Comment