trigger_error

Supported Versions: PHP 4 >= 4.0.1, PHP 5, PHP 7, PHP 8
Generates a user-level error/warning/notice message
Alias user_error
<?php trigger_error(string $message, int $error_level = E_USER_NOTICE): true
<?php function fatalError($error): void

{

    try {

        \trigger_error($error, E_USER_ERROR);

    } catch (\Throwable $e) {

        \set_error_handler(null);

        \trigger_error($error, E_USER_ERROR);
<?php         \trigger_error($error, E_USER_ERROR);

    } catch (\Throwable $e) {

        \set_error_handler(null);

        \trigger_error($error, E_USER_ERROR);

    }

}