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

Who developed php?

541


Explain how to execute a php script using command line.

556


Why many companies are switching their current business language to php?

586


What are sql injections, how do you prevent them and what are the best practices?

498


What is difference between include and include_once in php?

498






Write down the code for save an uploaded file in php.

526


Is array function in php?

527


What is include in php?

539


What are some new features introduced in php7?

8372


Is it possible to submit a form with a dedicated button?

502


Explain me what is x+ mode in fopen() used for?

539


How to count a number of words in a string in php?

504


What is csrf token and how will you add csrf token in ajax?

521


how to track no of users logged in?

592


How do I clear my browser session?

510