← All docs

user_error()

Alias of trigger_error.

user_error()

function user_error(string $message, int $error_level = 1024): bool

Alias of trigger_error.

Parameters:

  • $message (string)
  • $error_level (int), default 1024, optional

Returns: bool

Availability

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

For how user_error is implemented in the compiler, see the internals page.