← All docs

error_reporting()

Gets or sets the active error reporting mask.

error_reporting()

function error_reporting(mixed $error_level = null): int

Gets or sets the active error reporting mask.

Parameters:

  • $error_level (mixed), default null, optional

Returns: int

Availability

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

Internals

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