Types of Errors in PHP


Basically there are four types of errors in PHP, which are as follows:

  1. Parse Error (Syntax Error)
  2. Fatal Error
  3. Warning Error
  4. Notice Error

1. Parse Errors (syntax errors)

The parse error occurs if there is a syntax mistake in the script; the output is Parse errors. A parse error stops the execution of the script. There are many reasons for the occurrence of parse errors in PHP. The common reasons for parse errors are as follows:

Common reason of syntax errors are:

  • Unclosed quotes
  • Missing or Extra parentheses
  • Unclosed braces
  • Missing semicolon

Continue reading

Advertisements