|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-26 16:12 UTC] derick@php.net
[2004-11-26 16:18 UTC] phpbug at billmann-edv dot net
[2004-11-26 16:25 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 15:00:01 2025 UTC |
Description: ------------ foreach returns the wrong results. Taking a look at the simple example code and the result should make any more explanations unnecessary... ;-) Reproduce code: --------------- foreach ( array ( 1 ) as $data ) { var_dump ( $data ); } Expected result: ---------------- int(1) Actual result: -------------- array(2) { [0]=> int(1) [1]=> int(0) }