I have seen uses of @
in front of certain functions, like the following:
$fileHandle = @fopen($fileName, $writeAttributes);
What is the use of this symbol?
转载于:https://stackoverflow.com/questions/1032161/what-is-the-use-of-the-symbol-in-php
I have seen uses of @
in front of certain functions, like the following:
$fileHandle = @fopen($fileName, $writeAttributes);
What is the use of this symbol?
转载于:https://stackoverflow.com/questions/1032161/what-is-the-use-of-the-symbol-in-php
It suppresses error messages — see Error Control Operators in the PHP manual.