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


Please Help Members By Posting Answers For Below Questions

What is the difference between htmlentities and htmlspecialchars in php?

682


What does it mean when it says the csrf token is invalid?

662


How to reset/destroy a cookie in php?

707


How to reset/destroy a cookie?

781


Explain the value of the variable input is a string 1,2,3,4,5,6,7. How would you get the sum of the integers contained inside input?

758


How can I learn php fast?

760


Do you know what is the use of the function 'imagetypes()'?

666


What are the different filter functions used to filter a variable?

714


Explain some of the php string functions?

725


What is return value in php?

680


What are default session time and path?

777


What is session in php why it is use?

693


How do you remove whitespace from the beginning and end of a $string variable?

678


What is the function of trim?

701


How to check a variable is an array or not in php?

696