What are different types of errors available in Php ?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Sep 12, 2018

 

    1 Answer Written

  •  Sharad Jaiswal
    Answered by swapna

    Below are types of errors in PHP

    • Notices: Accessing a variable that has not yet been defined.
    • Warnings: Warnings are more severe errors like attempting to include() a file which does not exist.
    • Fatal Errors: These are critical errors – instantiating an object of a non-existent class or require() a file which does not exist.
    • Parse Errors(syntax errors): A parse error stops the execution of the script

Please Login or Register to leave a response.

Related Questions

PHP Interview Questions

What is T_PAAMAYIM_NEKUDOTAYIM ?

T_PAAMAYIM_NEKUDOTAYIM is scope resolution operator used as :: (double colon) .Basically, it used to call static methods/variables of a Class...

PHP Interview Questions

What is the difference between == and === operator in PHP ?

In PHP == is equal operator and returns TRUE if $a is equal to $b after type juggling and === is Identical operator and return TRUE if $a is equal to $b, and they are of the same data type...

Ask a Question