note 41431 deleted from function.arrayiterator-hasmore by nlopess
| From: | nlopess@php.net | Date: | Sun, 11 Apr 2004 14:34:51 +0000 |
| Subject: | note 41431 deleted from function.arrayiterator-hasmore by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67981@lists.php.net to get a copy of this message | ||
Note Submitter: fschaper@zerodegree.de
----
hasMore seems to be replaced by
bool ArrayIterator::valid( void )
$oArr = new ArrayObject();
$oArr[] = "Test";
$oArr[] = "Test2";
$oIt = $oArr->getIterator();
while( $oIt->valid() ) {
echo $oIt->current()."<br>";
$oIt->next();
}