how to enable display_errors in php ini code example
Example 1: php display errors
// Add these lines somewhere on top of your PHP file:
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Example 2: show display error php
//PHP functions - add the lines in the above of page
ini_set('display_errors', 1);
ini_set('display_startup_errors', 0);
error_reporting(E_ALL & ~E_NOTICE);