PHP Error Handling
- Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR
- Which character do the error_reporting directive use to represent the logical operator NOT?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
The twidle (~) character is used to represent the logical operator NOT.
- Which version of PHP introduced E_STRICT Error level?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
Description for E_STRICT is PHP version portability suggestions
- What is the description of Error level E_ERROR?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Fatal run-time error
- How many error levels are available in PHP?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
16