note 105934 added to cachingiterator.hasnext

From: Date: Mon, 26 Sep 2011 20:08:17 +0000
Subject: note 105934 added to cachingiterator.hasnext
Groups: php.notes 
Request: Send a blank email to php-notes+get-183458@lists.php.net to get a copy of this message
CachingIterator::hasNext Example <?php $ait = new ArrayIterator(array('Value 1', 'Value 2', 'Value 3', 'Value 4')); $cit = new CachingIterator($ait); foreach ($cit as $value) { echo $value; //if has a next value, print a comma if ($cit->hasNext()) { echo ', '; } } ?> Result: Value 1, Value 2, Value 3, Value 4 ---- Server IP: 69.147.83.197 Probable Submitter: 190.28.4.231 ---- Manual Page -- http://www.php.net/manual/en/cachingiterator.hasnext.php Edit -- https://master.php.net/note/edit/105934 Del: integrated -- https://master.php.net/note/delete/105934/integrated Del: useless -- https://master.php.net/note/delete/105934/useless Del: bad code -- https://master.php.net/note/delete/105934/bad+code Del: spam -- https://master.php.net/note/delete/105934/spam Del: non-english -- https://master.php.net/note/delete/105934/non-english Del: in docs -- https://master.php.net/note/delete/105934/in+docs Del: other reasons-- https://master.php.net/note/delete/105934 Reject -- https://master.php.net/note/reject/105934 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#183458) next »