mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
16 lines
153 B
Plaintext
16 lines
153 B
Plaintext
|
--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===
|