It depends on which second parameter you pass trigger_error() , $error_type , is. Some will display an error and stop execution, others will display an error and continue (note that the screen is also based on the error_reporting and display_errors settings).
For example, if you call:
trigger_error('This is an error', E_USER_ERROR);
Your script will stop execution.
However, if you call:
trigger_error('This is a warning', E_USER_WARNING);
Your script will not stop.
By default, trigger_error() uses E_USER_NOTICE , which does not stop execution.
A complete list of error types can be found here .
newfurniturey
source share