note 112198 added to function.reset

From: Date: Thu, 16 May 2013 10:07:05 +0000
Subject: note 112198 added to function.reset
Groups: php.notes 
Request: Send a blank email to php-notes+get-194821@lists.php.net to get a copy of this message
Note that you can't use pointer here. It will reset the iteration counter in this case. foreach($array as $key=>&$value) {...} Use standard foreach instead foreach($array as $key=>$value) {...} ---- Server IP: 69.147.83.199 Probable Submitter: 89.216.27.108 ---- Manual Page -- http://php.net/manual/en/function.reset.php Edit -- https://master.php.net/note/edit/112198 Del: integrated -- https://master.php.net/note/delete/112198/integrated Del: useless -- https://master.php.net/note/delete/112198/useless Del: bad code -- https://master.php.net/note/delete/112198/bad+code Del: spam -- https://master.php.net/note/delete/112198/spam Del: non-english -- https://master.php.net/note/delete/112198/non-english Del: in docs -- https://master.php.net/note/delete/112198/in+docs Del: other reasons-- https://master.php.net/note/delete/112198 Reject -- https://master.php.net/note/reject/112198 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194821) next »