delete a key in an object php code example Example: delete property from object php unset($a->new_property);