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

The error string will be truncated to 1KB of text if it is longer than 1KB.

Get Programming PHP 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.