by nnq · 13y ago · 0 comments
if (empty($arr['key']))
with: if (@$arr['key'])
?People have started using this and I find no reason to tell them "it's bad practice", although it only spares 5 chars typing...
@$arr['key']
is the same as $er = error_reporting(0);
$arr['$key'];
error_reporting($er);
unset($er);
Probably more importantly is that the internal errors are still being raised, there's just additional comparison logic within the PHP engine to suppress them internally.