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

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

What is the use of this symbol?

1Best Answer
11

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

Leave a Reply

Your email address will not be published. Required fields are marked *