Error reports

Learning PHP can be great however it can also be very frustrating to lessen that frustration know more about error reports.
One very important thing to know about PHP is the error reports. You need to have to turn on error reporting immediately preferably on Maximum Level. In this level it will be able to declare a variable ahead of time, reference a variable and use a define that is not set.
It will seem that this is not important but only until you develop structures programs with many functions and classes. It would help lessen the errors as well as long hours of fixing your work due to misspelled variables.
Put this line at the top of the PHP document: error_reporting(E_ALL); It places error reporting into highest level. You’ll be able to receive warning messages that will identify possible wrong elements of the document.