Explain the different types of errors in PHP?
Submitted by: AdministratorNotices, Warnings and Fatal errors are the types of errors in PHP
☛ Notices:
Notices represents non-critical errors, i.e. accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all but whenever required, you can change this default behavior.
☛ Warnings:
Warnings are more serious errors but they do not result in script termination. i.e calling include() a file which does not exist. By default, these errors are displayed to the user.
☛ Fatal errors:
Fatal errors are critical errors i.e. calling a non-existent function or class. These errors cause the immediate termination of the script.
Submitted by:
☛ Notices:
Notices represents non-critical errors, i.e. accessing a variable that has not yet been defined. By default, such errors are not displayed to the user at all but whenever required, you can change this default behavior.
☛ Warnings:
Warnings are more serious errors but they do not result in script termination. i.e calling include() a file which does not exist. By default, these errors are displayed to the user.
☛ Fatal errors:
Fatal errors are critical errors i.e. calling a non-existent function or class. These errors cause the immediate termination of the script.
Submitted by:
Read Online Sr. PHP Programmer Job Interview Questions And Answers
Top Sr. PHP Programmer Questions
☺ | What are the 3 scope levels available in PHP and how would you define them? |
☺ | What is the purpose of $_PHP_SELF variable in PHP? |
☺ | What is the purpse $_PHP_SELF variable? |
☺ | Can the value of a constant change during the script's execution? |
☺ | What is the purpose of _CLASS_ constant? |
Top Coding/Programming Categories
☺ | Python Interview Questions. |
☺ | OOP Interview Questions. |
☺ | Software engineering Interview Questions. |
☺ | PHP Interview Questions. |
☺ | VBA (Visual Basic for Applications) Interview Questions. |