PHP Error Handling


  1. Say you want to report error concerned about fatal run-time, fatal compile-time error and core error which statement would you use?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    error_reporting = E_ERROR | E_COMPILE_ERROR | E_CORE_ERROR


  1. Which character do the error_reporting directive use to represent the logical operator NOT?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    The twidle (~) character is used to represent the logical operator NOT.



  1. Which version of PHP introduced E_STRICT Error level?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Description for E_STRICT is PHP version portability suggestions


  1. What is the description of Error level E_ERROR?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Fatal run-time error



  1. How many error levels are available in PHP?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    16