|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-12-17 15:29 UTC] edink@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 00:00:01 2025 UTC |
Description: ------------ When I use foreach on an array the values are wrong. It's very critical. Reproduce code: --------------- <? $a=array(5,10,15); foreach($a as $b) var_dump($b); ?> Expected result: ---------------- int(5) int(10) int(15) Actual result: -------------- array(2) { [0]=> int(5) [1]=> int(0) } array(2) { [0]=> int(10) [1]=> int(1) } array(2) { [0]=> int(15) [1]=> int(2) }