Loading…

How can we enable error reporting in PHP?

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');

Suggest An Answer

No suggestions avaliable!

Latest post from PHP interview questions

Ask Question