4 ms·
what about all the simple cases where one could replace the more verbose: if (empty($arr['key'])) with: if (@$arr['key']) ? People have started usi
by nnq 14y ago
what about all the simple cases where one could replace the more verbose:
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...
- Firehed 14y ago@ is extremely slow. @$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.