|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-10-12 08:25 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
Description: ------------ When using function next() in foreach-loop, it's not working as expected. Reproduce code: --------------- $row = array('A', 'B', 'C', 'D'); foreach($row as $value) { echo $value; if(next($row) !== FALSE) echo ";"; } Expected result: ---------------- A;B;C;D Actual result: -------------- A;B;CD