What are the different types of Errors in PHP?

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 ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is session data?

540


Tell me how can we check the value of a given variable is alphanumeric?

497


List data types in PHP?

541


What is symfony php?

528


What is difference between get and post?

522






How to get the number of characters in a string?

570


What does the arrow mean in php?

534


Tell me how to execute an sql query? How to fetch its result?

503


What are advantages of .htaccess?

533


How do we get the current session id?

560


armstrong number by using php while number is given by the keyboard.?

1701


Is key in array php?

593


What is factory pattern in php?

500


What are session variables in php?

525


Explain how is it possible to set an infinite execution time for php script?

515