xref: /PHP-7.3/tests/lang/040.phpt (revision 610c7fbe)
1--TEST--
2foreach into array
3--FILE--
4<?php
5$a = array(0,1);
6$b[0]=2;
7foreach($a as $b[0]) {
8  echo $b[0]."\n";
9}
10?>
11===DONE===
12--EXPECT--
130
141
15===DONE===
16