Bird
0
0

Which PHP error type is used to indicate a non-fatal run-time warning that does not stop script execution?

easy📝 Conceptual Q1 of 15
PHP - Error and Exception Handling
Which PHP error type is used to indicate a non-fatal run-time warning that does not stop script execution?
AE_ERROR
BE_PARSE
CE_WARNING
DE_NOTICE
Step-by-Step Solution
Solution:
  1. Step 1: Understand PHP error types

    E_WARNING represents run-time warnings that do not halt script execution.
  2. Step 2: Differentiate from other error types

    E_ERROR stops script execution, E_PARSE is a compile-time parse error, and E_NOTICE is a minor notice.
  3. Final Answer:

    E_WARNING -> Option C
  4. Quick Check:

    Non-fatal run-time warning = E_WARNING [OK]
Quick Trick: Warnings don't stop scripts; errors do. Remember E_WARNING [OK]
Common Mistakes:
  • Confusing E_WARNING with E_ERROR
  • Thinking E_PARSE is run-time
  • Mixing E_NOTICE with warnings

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PHP Quizzes