note 57395 deleted from function.arrayiterator-rewind by mazzanet
| From: | mazzanet@php.net | Date: | Mon, 03 Oct 2005 08:35:01 +0000 |
| Subject: | note 57395 deleted from function.arrayiterator-rewind by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-96230@lists.php.net to get a copy of this message | ||
Note Submitter: kevin at oceania dot net
----
<?php
$arrayobject = new ArrayObject();
$arrayobject[] = 'zero';
$arrayobject[] = 'one';
$arrayobject[] = 'two';
$iterator = $arrayobject->getIterator();
// seek a position in the array
$iterator->seek(1);
// echo the current value of the key '1'
echo $iterator->current();
?>