error_reporting(-1); //Passing in the value -1 will show every possible error, even when new levels and constants are added in future PHP versions ini_set('display_errors', 'On');
Doc Available:
Another way (if your server supports it) is with the .htaccess file:
php_flag display_errors on php_value error_reporting -1
AlexV source share