note 73527 added to language.oop5.iterations

From: Date: Wed, 28 Feb 2007 04:00:05 +0000
Subject: note 73527 added to language.oop5.iterations
Groups: php.notes 
Request: Send a blank email to php-notes+get-123937@lists.php.net to get a copy of this message
The iterator template from knj at aider dot dk does not yield correct results. If you do <? reset($a); next($a); echo current($a); ?> where $a is defined over the suggested template, then the first element will be output, not the second, as expected. ---- Server IP: 82.103.133.188 Probable Submitter: 86.52.12.238 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.iterations.php Edit -- https://master.php.net/note/edit/73527 Del: integrated -- https://master.php.net/note/delete/73527/integrated Del: useless -- https://master.php.net/note/delete/73527/useless Del: bad code -- https://master.php.net/note/delete/73527/bad+code Del: spam -- https://master.php.net/note/delete/73527/spam Del: non-english -- https://master.php.net/note/delete/73527/non-english Del: in docs -- https://master.php.net/note/delete/73527/in+docs Del: other reasons-- https://master.php.net/note/delete/73527 Reject -- https://master.php.net/note/reject/73527 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#123937) next »