mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
- Add new test
This commit is contained in:
parent
96610aee08
commit
d1fc7ad4d9
1 changed files with 15 additions and 0 deletions
15
tests/lang/040.phpt
Executable file
15
tests/lang/040.phpt
Executable file
|
@ -0,0 +1,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===
|
Loading…
Add table
Add a link
Reference in a new issue