note 129722 added to function.next

From: Date: Tue, 27 Aug 2024 01:07:53 +0000
Subject: note 129722 added to function.next
Groups: php.notes 
Request: Send a blank email to php-notes+get-221497@lists.php.net to get a copy of this message
I suggest that a WARNING that next() should not be used within a foreach loop should be included in the main body of the documentation at the top. At one time, it seems to have been there, but I spent hours trying to solve the bizarre problems that result from this combination, only to stumble on a clue to it on another site, that seem to suggest that it was originally clearly identified. If you look hard, this problem is referenced in some notes, but one doesn't expect to look there for something so basic. ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.84.18 (proxied: 24.87.154.112) ---- Manual Page -- https://php.net/manual/en/function.next.php Edit -- https://main.php.net/note/edit/129722 Del: integrated -- https://main.php.net/note/delete/129722/integrated Del: useless -- https://main.php.net/note/delete/129722/useless Del: bad code -- https://main.php.net/note/delete/129722/bad+code Del: spam -- https://main.php.net/note/delete/129722/spam Del: non-english -- https://main.php.net/note/delete/129722/non-english Del: in docs -- https://main.php.net/note/delete/129722/in+docs Del: other reasons-- https://main.php.net/note/delete/129722 Reject -- https://main.php.net/note/reject/129722 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#221497) next »