note 102955 added to control-structures.foreach

From: Date: Wed, 16 Mar 2011 21:07:59 +0000
Subject: note 102955 added to control-structures.foreach
Groups: php.notes 
Request: Send a blank email to php-notes+get-177939@lists.php.net to get a copy of this message
It seems when you use references in a foreach, and then you add elements to the array within it, it only runs through them if the current element isn't the last of the array (with 5.2.11 at least). ---- Server IP: 130.206.1.5 Probable Submitter: 84.127.60.133 ---- Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php Edit -- https://master.php.net/note/edit/102955 Del: integrated -- https://master.php.net/note/delete/102955/integrated Del: useless -- https://master.php.net/note/delete/102955/useless Del: bad code -- https://master.php.net/note/delete/102955/bad+code Del: spam -- https://master.php.net/note/delete/102955/spam Del: non-english -- https://master.php.net/note/delete/102955/non-english Del: in docs -- https://master.php.net/note/delete/102955/in+docs Del: other reasons-- https://master.php.net/note/delete/102955 Reject -- https://master.php.net/note/reject/102955 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177939) next »