zend_error() can be used to generate error messages.
This function accepts two arguments; the first is the error type (see
zend_errors.h), and the second is the error message.
zend_error(E_WARNING, "This function has been called with empty arguments");
Table 56-1 shows a list of possible values (see Figure 56-1). These
values are also referred to in php.ini. Depending on
which error type you choose, your messages will be logged.
Table 56-1. Zend's Predefined Error Messages.
Error
Syntax
E_ERROR
Signals an error and terminates execution of the script
immediately
.
E_WARNING
Signals a generic warning. Execution continues.
E_PARSE
Signals a parser error. Execution continues.
E_NOTICE
Signals a notice. Execution continues. Note that by
default the display of this type of error messages is turned off in
php.ini.
E_CORE_ERROR
Internal error by the core; shouldn't be used by
user-written modules.
E_COMPILE_ERROR
Internal error by the compiler; shouldn't be used by
user-written modules.
E_COMPILE_WARNING
Internal warning by the compiler; shouldn't be used by
user-written modules.
Figure 56-1. Display of warning messages in the browser.
Php zend.printing.zend error Function syntax tag
zend.printing.zend error php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php zend.printing.zend error syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.