|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2008-05-30 09:04 UTC] felix dot devliegher at gmail dot com
[2008-05-30 09:08 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 20 14:00:01 2025 UTC |
Description: ------------ Reference problems Reproduce code: --------------- <?php $matches = array( array('one0', 'two0', 'three0'), array('one1', 'two1', 'three1'), array('one2', 'two2', 'three2'), array('one3', 'two3', 'three3'), array('one4', 'two4', 'three4'), ); foreach($matches as $key=>&$value) { } foreach($matches as $value) { echo $value[0] . PHP_EOL; } Expected result: ---------------- one0 one1 one2 one3 one4 Actual result: -------------- one0 one1 one2 one3 one3