Give me one good reason to do this
if( isset($_GET['key']) && ($_GET['key'] === '123') )
{...
instead of this
if( @$_GET['key'] === '123' )
{...
I'm asking for this very specific code case, and not in general!
Following reasons are not welcome:
- "using
@
will slow down the application by some nanoseconds because the error is created anyway (even if it's supressed)." Well I prefer slower code but more readable. - "using
@
is bad habit." It might be true in general, but I don't belive in this case (moreover bad habits might depend on the context, on PHP manual in function likefopen
they suggest to use@
in certain circumstainces, see Errors/Exceptions at http://www.php.net/manual/en/function.fopen.php)