Types of Errors in PHP

What are all the differnt types of errors in PHP?


An error is defined as an unexpected, invalid program statement from which it is impossible to recover or simply referred as mistakes.
Types of errors in PHP

  • Parse Error
  • Parse Error is related to Syntax Error in php. This error occurs mostly because of the missing or mismatched parenthesis in PHP code.

  • Fatal Error
  • This error occurs due to to an uncaught exception or an undefined function in the PHP code.

  • Warning Error
  • This error occurs when trying to include a file which doesn't exists.

  • Notice Error
  • An undefined variable in PHP code causes this type of error.

These are all the common types of errors that occur in PHP programming.

PHP Topics

Ask Questions

Ask Question