SyntaxFix
Write A Post
Hire A Developer
Questions
This also works if you are looping over an object.
unset($object->$key);
No need to use brackets.