The error suppression operator (@) is the at sign. It can be used before every statement. When you put this at the beginning of the places that will create errors, it does not cause an error output on the screen.

It serves to ignore the error and not to make the result negative.

Let’s say we have a division process, maybe we can write the number 0 in this division process. When we write 0, PHP will give an error because it cannot divide a number by 0. In this case, we can suppress the error using this operator.

Sample:

<?php
$a = 10;
$b = 0;
$result = @($a/$b);
echo $result;
?>

It does not write an error on the screen, instead it returns a negative result.