Note: this is a reformatted repost of the original, I have my moved my blog and that entry was not in the dump. It needed a reformat anyways...
I had a node which stored user profile data and upon blocking said user I wanted to clean it up. A little bit later I will post the code -- for now let it suffice that I needed to use $profile->{$key}[0][$k] = '';
instead of $profile[$key][0][$k] = '';
. I consider myself a not-too bad PHP coder but this syntax took me quite some time to figure out.