Date: 07/16/01
- Next message: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Previous message: cmv <email protected>: "[PHP-DEV] Bug #12188 Updated: Object with Sessiona"
- Next in thread: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Reply: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: adresse <email protected>
Operating system: windows
PHP version: 4.0.6
PHP Bug Type: Arrays related
Bug description: nested loops using each don't work
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
-- Edit bug report at: http://bugs.php.net/?id=12193&edit=1-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Previous message: cmv <email protected>: "[PHP-DEV] Bug #12188 Updated: Object with Sessiona"
- Next in thread: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Reply: zeev <email protected>: "[PHP-DEV] Bug #12193 Updated: nested loops using each don't work"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

