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 |
| 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.