I'm making repeated calls to a few related object instances, and I need to cache them in memory.
If I have an array of objects, like:
array('object_a' => $obj_a, 'object_b' => $obj_b);
I want to do something like:
$obj_a = getmyobj('object_a');
Where the object is created if it doesn't exist in memory already.