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


Please Help Members By Posting Answers For Below Questions

Why php is used in html?

527


Is it possible multiple inheritance in php?

576


Tell me what kind of things have you done on the social side?

502


How long is a php session valid?

513


How we load all classes that placed in different directory in one php file , means how to do auto load classes.

498






Write a program to get lcm of two numbers using php?

506


Is jquery better than javascript?

559


Can I use php in visual studio?

529


What are arguments in php?

558


What are the advantages of using php?

534


What does the expression exception::__tostring means?

558


Why php is used?

603


What is trim function in php?

614


What is multidimensional array in php?

539


What is php oops concepts?

522