Name

trigger_error

Synopsis

void trigger_error(string error[, int type])

Triggers an error condition; if the type is not given, it defaults to E_USER_NOTICE. The following types are valid:

E_USER_ERROR

User-generated error

E_USER_WARNING

User-generated warning

E_USER_NOTICE (default)

User-generated notice

E_USER_DEPRECATED

User-generated deprecated call warning

If longer than 1,024 characters, error is truncated to 1,024 characters.

Get Programming PHP, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.