If I have an stdObject say, $a.
stdObject
$a
Sure there\'s no problem to assign a new property, $a,
$a->new_property = $
This also works if you are looping over an object.
unset($object->$key);
No need to use brackets.