Display All PHP Errors for a single PHP file

ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);

Add above code snippet after the <?php tag in your php file it will display errors on the file.

This is a quick way to check errors when you are working. This override the default php.ini settings.

Don’t forget to remove it. after you have complete your works.