is there way for programmatically storing an 'address' of properties for an objects in PHP?
<p>Suppose I have an object in PHP $o, about which I can get $o->a->b, or maybe $0->c['d'].</p>

<p>Is there a way of storing these as sort of address for handling elsewhere?</p>

<p>What I have is that at several different places I need to process different properties of the object, but in the same way.</p>

<p>So what I'd like to do is build a collection of addresses as I go along, and then hand them all to a single function which goes through them all and does the processing.</p>

<p>Eg:</p>

<p>$o->a = 'red';</p>

<p>$o->b->c = 'red';</p>

<p>$o->d['e'] = 'red';</p>

<p>... and I want to change all 'red' to 'green', but those particular keys and properties may change depending on circumstances.</p>
