|
|
|
|
|
by frosas
4901 days ago
|
|
I've being using this trick for years instead of the ugly isset($array['key']) ? $array['key'] : null;
thinking I was simply ignoring those stupid "Undefined index" notices.Now I figure out I was also hiding "Undefined variable" notices when $array was not defined and a ton of potential errors when $array is an object implementing ArrayAccess. Shame on me. |
|
Thanks.
Note to self: grep the code at work for @. Purge.