040.phpt 153 B

123456789101112131415
  1. --TEST--
  2. foreach into array
  3. --FILE--
  4. <?php
  5. $a = array(0,1);
  6. $b[0]=2;
  7. foreach($a as $b[0]) {
  8. echo $b[0]."\n";
  9. }
  10. ?>
  11. ===DONE===
  12. --EXPECT--
  13. 0
  14. 1
  15. ===DONE===