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
What is isset php?
What's the difference between using mysql_ functions and pdo?
Explain about switch statement in PHP?
Which database is best for php?
Write the statements that are used to connect php with mysql
How do you access a get requests url parameter with php?
Why do you need php?
How do I know my xampp version?
Which function can be used to delete a file?
Explain me what is the goto statement useful for?
What is php trait?
Which of the data type is compound datatype supported by PHP?
Is not null in php?
what is benefit of magento?
How many different types of messages available in php?