1. Name and explain five of the PHP error constants?
- E_ERROR: -This error is displayed when there is fatal error which halts the execution of the script immediately.
- E_WARNING: -This warns the programmer about the error but the execution of the script is not stopped.
- E_PARSE: -These errors occur during compile time and these errors should only be generated by the parser.
- E_USER_WARNING: -This warning error is generated by the user and is non fatal. This is set by the programmer using trigger_error().
- E_COMPILE_WARNING: -this error is generated by the Zend scripting engine. This is a compile time non fatal error.
No comments:
Post a Comment