The error operator is a PHP operator used in error diagnostics and reports. 

An error control operator supported by PHP is the @ sign. When this operator is associated with an expression in PHP, error messages generated by that expression will be ignored.

A custom error handler set_error_handler() may be set up which will calls a function error_reporting() which returns a zero value if the error trigger is preceded with @ sign.

The track_error is a feature that stores the error messages generated by an expression. This error is saved in $php_errormsg. The disadvantage of such is that it always overrides the error messages.

Example of error operator in PHP

 

›› go to examples ››