Fatal error: Class 'NumberFormatter' not found

This error message is indicating that the PHP script is trying to use a class called "NumberFormatter" but it cannot be found. This class is part of the Intl extension in PHP, which provides internationalization support. To fix this error, you need to make sure that the Intl extension is installed and enabled in your PHP environment. You can do this by editing your php.ini file and uncommenting the line that says "extension=intl" or by using the following command: "sudo apt-get install php-intl" if you are using linux. Once you've done that, you should be able to run your script without encountering this error.

Watch a course Learn object oriented PHP