|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-16 16:50 UTC] zeev@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 13:00:01 2025 UTC |
when tho loops using each are nested, the outer while loop stops after the first iteration. For instance, the output of the following script : $outer=array("o1", "o2"); $inner=array("i1","i2"); while (list($o_index, $o) = each($outer)) while (list($i_index, $i) = each($inner)) echo $o, $i, "<br>"; is o1i1 o1i2 instead of o1i1 o1i2 o2i1 o2i2