Return to 040.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / lang |
1.1 ! misho 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===