Menu Samaritan's Purse

USER_ERROR

Generates a user-level error/warning/notice message

SYNTAX

user_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_MSG

NOTICE[1024] unnecessary to divide by one

ERROR_TYPE

ERROR[256] cannot divide by zero

PHP