What is the use of the @ symbol in php?

What is the use of the @ symbol in PHP?

The at sign (@) is used as error control operator in PHP. When an expression is prepended with the @ sign, error messages that might be generated by that expression will be ignored. If the track_errors feature is enabled, an error message generated by the expression and it will be saved in the variable $php_errormsg. This variable will be overwritten on each error.

For Example

// Statement 1

$result= $hello['123'] ;

// Statement 2

$result= @$hello['123'] ;

?>

Output

Statement 1 Shows error :: //PHP Notice: Undefined variable: hello.

// Statement 2

does not show any type of error;
Php Related Topic's