PHP Array of Objects Internal Navigation Pattern
I have an array of objects, and want the objects to be able to reference their 'neighbors' (the next and previous objects in the array). Is there an existing pattern to do that?

Perhaps the array should be wrapped in an object (since the object can be interested just as well as the array). That's fine too, I'm just looking for an existing good-practice pattern.

PHP Array of Objects Internal Navigation Pattern
===

I have an array of objects, and want the objects to be able to reference their 'neighbors' (the next and previous objects in the array). Is there an existing pattern to do that?

Perhaps the array should be wrapped in an object (since the object can be interested just as well as the array). That's fine too, I'm just looking for an existing good-practice pattern.
