Testing Error Reporting


Notice: Undefined variable: var in /home/khaduch/phpperc6.kenjhpics.com/chapters/ch08/report_errors.php on line 19

Warning: Invalid argument supplied for foreach() in /home/khaduch/phpperc6.kenjhpics.com/chapters/ch08/report_errors.php on line 19

Warning: Division by zero in /home/khaduch/phpperc6.kenjhpics.com/chapters/ch08/report_errors.php on line 20

Same faulty code sequence, with E_NOTICE turned off


Warning: Invalid argument supplied for foreach() in /home/khaduch/phpperc6.kenjhpics.com/chapters/ch08/report_errors.php on line 27

Warning: Division by zero in /home/khaduch/phpperc6.kenjhpics.com/chapters/ch08/report_errors.php on line 29