- reset: documentation ( source)
- key: documentation ( source)
- next: documentation ( source)
- current: documentation ( source)
<?php
$it = new ArrayObject();
$it[] = 'Foo';
$it[] = 'Bar';
reset($it);
do {
echo current($it), "\n";
echo key($it), "\n";
} while (next($it));