SPL has many goodies that help save you time, one of the handiest classes is the ArrayObject class.
Often, array notation looks ugly in code and can be more difficult to manage, particularly in template classes mixing PHP and HTML.
A nice way to get around this is to access information in your array using object notation. For example rather than for example echo $array['my_key']; going echo $array->my_key;
How ArrayObject helps us here is perhaps most simply demonstrated in a code snippet.
$array = array('key1'=>'apples', 'key2'=>'oranges', 'key3'=>'bananas');
$object = new ArrayObject($array);
// now the clever bit
$object->setFlag(ArrayObject::ARRAY_AS_PROPS);
echo $object->key_1;
echo $object->key_2;
echo $object->key_3;
This code is pretty straight forward, you create an associative array with some unique key=>value pairs create an arrayobject setting a flag to treat the array as object properties. Then simply using the key names as properties gives you access to the values i.e. the program will output 'apples', 'oranges' and 'bananas'.