Reporting notices, warnings and errors

Updated: 16 June 2023

Turn on reporting

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

Check your settings

trigger_error('A notice', E_USER_NOTICE);
trigger_error('A warning', E_USER_WARNING);
trigger_error('An error', E_USER_ERROR);

Leave a comment