The error_reporting() function defines which errors are reported.We can modify these errors in php.ini. You can use these given function directly in php file.

error_reporting(E_ALL);
ini_set('display_errors', '1');

BY Best Interview Question ON 26 Jan 2019