I have seen using @ in front of certain functions like following:
$fileHandle = @fopen($fileName, $writeAttributes);
What is the use of this symbol?
I have seen using @ in front of certain functions like following:
$fileHandle = @fopen($fileName, $writeAttributes);
What is the use of this symbol?
It suppresses errors.
http://uk.php.net/manual/en/language.operators.errorcontrol.php
It suppresses error messages - see Error Control Operators in the PHP manual.
Also note that despite errors being hidden, any custom error handler (set with set_error_handler
) will still be executed!