Name
trigger_error
Synopsis
void trigger_error(stringerror
[, inttype
])
Triggers an error condition; if the type is not given, it defaults to
E_USER_NOTICE
. The following types are valid:
|
User-generated error |
|
User-generated warning |
|
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.