php remove stdclass property code example Example: remove field from object php unset($a->new_property);