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
Tell me what does pear stands for?
What is the meaning of xdebug?
What are the rules to declare a php variables?
How can we access the data sent through the url with the post method?
What is the best website to learn php?
How to register a variable in PHP session?
armstrong number by using php while number is given by the keyboard.?
Explain preg_Match and preg_replace?
What version of php do I have windows?
What is htmlspecialchars?
Are php short tags acceptable to use?
Tell me what is the difference between ereg_replace() and eregi_replace()?
Explain the three different kinds of Arrays?
What is rest api in php?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?