summaryrefslogtreecommitdiff
path: root/tests/lang/040.phpt
blob: 6d8ece96799e8ce00bae59f3cd18780d7ccff231 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--TEST--
foreach into array
--FILE--
<?php
$a = array(0,1);
$b[0]=2;
foreach($a as $b[0]) {
  echo $b[0]."\n";
}
?>
===DONE===
--EXPECT--
0
1
===DONE===