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
What is session data?
Tell me how can we check the value of a given variable is alphanumeric?
List data types in PHP?
What is symfony php?
What is difference between get and post?
How to get the number of characters in a string?
What does the arrow mean in php?
Tell me how to execute an sql query? How to fetch its result?
What are advantages of .htaccess?
How do we get the current session id?
armstrong number by using php while number is given by the keyboard.?
Is key in array php?
What is factory pattern in php?
What are session variables in php?
Explain how is it possible to set an infinite execution time for php script?