|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-11-12 08:21 UTC] frankw at well dot com
[2007-11-12 09:38 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 13:00:02 2025 UTC |
Description: ------------ The behavior of the next() function has changed between versions 4 and 5. Reproduce code: --------------- <?php $a = array( "a", "b", "c"); foreach ($a as $aa) { print($aa); if (next($a)) print(" + "); } ?> Expected result: ---------------- a + b + c Actual result: -------------- a + bc