Computer Science, asked by Anonymous, 1 year ago

What are the main error types in PHP and how do they differ?

Answers

Answered by EHSASS
1

★彡 ʜᴇʀᴇ ɪs ʏᴏᴜʀ ᴀɴsᴡᴇʀ 彡★

In PHP there are three main type of errors:

Notices

Simple, non-critical errors that are occurred during the script execution. An example of a Notice would be accessing an undefined variable.

Warnings

More important errors than Notices, however the scripts continue the execution. An example would be include() a file that does not exist.

Fatal

This type of error causes a termination of the script execution when it occurs. An example of a Fatal error would be accessing a property of a non-existent object or require() a non-existent file.

Understanding the error types is very important as they help developers understand what is going on during the development, and what to look out for during debugging.

ᴇʜsᴀss ★

Answered by sunilkumar1891
1

Basically there are 13 types of errors in PHP, which are as follows: E_ERROR: A fatal error that causes script termination. E_WARNING: Run-time warning that does not cause script termination. E_PARSE: Compile time parse error.

Similar questions