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 how is it possible to parse a configuration file?
Which operator is used to concatenate two strings in PHP?
Explain different sorting function in php?
What is action hooks and filter hooks?
How check field is empty or not in php?
What is data abstraction in php?
Explain what is the difference between $var and $$var?
Why triggers are used in mysql?
Tell me how can I display text with a php script?
Do you know what is the function func_num_args() used for?
How to swap two variables without using 3rd temp variable.
Is PHP an open source software?
What is difference between sql and php?
Is php a dying language?
What are the advantages of object-oriented programming in php?