Explain different types of errors in PHP (i.e. arguments in
errorreporting function)?

Answer Posted / phponwebsites

Basically four types errors is occurred in php. There are:

1. Parse error
2. Fatal error
3. Warning
4. Noticed error
Parse error:

The parse errors php is the syntax error. It stops the execution of the script in php. The common reasons for occur parse in php as follows:
1.unclosed quotes
2.missing semicolon
3.unclosed braces
4.missing parentheses
5.add extra parentheses
Fatal error:

The fatal error will occur when you call the undefined function in php. It stop the execution of the php script.

Waring in php:

The warning is occurred when you include the file but the file is not found in php. It does not stop the execution of the php script.

For more details visit http://www.phponwebsites.com/2014/06/php-types-of-errors.html

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell me how is it possible to parse a configuration file?

508


Which operator is used to concatenate two strings in PHP?

555


Explain different sorting function in php?

614


What is action hooks and filter hooks?

504


How check field is empty or not in php?

544






What is data abstraction in php?

587


Explain what is the difference between $var and $$var?

532


Why triggers are used in mysql?

536


Tell me how can I display text with a php script?

521


Do you know what is the function func_num_args() used for?

570


How to swap two variables without using 3rd temp variable.

499


Is PHP an open source software?

582


What is difference between sql and php?

554


Is php a dying language?

543


What are the advantages of object-oriented programming in php?

509