What is the use of the @ symbol in PHP?

sv_in picture sv_in · Jun 23, 2009 · Viewed 230.6k times · Source

I have seen uses of @ in front of certain functions, like the following:

$fileHandle = @fopen($fileName, $writeAttributes);

What is the use of this symbol?

Answer

RichieHindle picture RichieHindle · Jun 23, 2009

It suppresses error messages — see Error Control Operators in the PHP manual.