Menu Riverview Church

TRIGGER_ERROR

Generates a user-level error/warning/notice message

SYNTAX

trigger_error ( string $error_msg [, int $error_type = E_USER_NOTICE ] ) : bool

PARAMETERS

error_msg

The designated error message for this error. It's limited to 1024 bytes in length. Any additional characters beyond 1024 bytes will be truncated.

error_type

The designated error type for this error. It only works with the E_USER family of constants, and will default to E_USER_NOTICE.

RETURN

This function returns FALSE if wrong error_type is specified, TRUE otherwise.

EXAMPLES

ERROR [256] Cannot divide by zero<br>

PHP