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
Suppose we receive a form submitted by a post to subscribe to a newsletter. This form has only one field, an input text field named email. How would we validate whether the field is empty? Print a message "the email cannot be empty" in this case?
What is $_ request?
Which functions are used to remove whitespaces from the string?
Why do we use php?
What is the difference between single-quoted and double-quoted strings in php?
Is null in php?
Could we start a variable with number like $4name?
What is the difference between apache vs niginx?
How do I escape in php?
What are majic methords in php?
Why many companies are switching their current business language to php?
How can image properties be retrieved in php?
What is meant by pdo in php?
What is a composer?
What is the purpose of php?