<?php
// didn't see any code demos...here's one from an app I'm working on
$array = array('1' => 'one',
               '2' => 'two',
               '3' => 'three');
$arrayobject = new ArrayObject($array);
$iterator = $arrayobject->getIterator();
if($iterator->valid()){
    $iterator->seek(1);            // expected: two, output: two
    echo $iterator->current();    // two
}
?>