summaryrefslogtreecommitdiff
path: root/tests/lang/040.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/040.phpt')
-rw-r--r--tests/lang/040.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/lang/040.phpt b/tests/lang/040.phpt
new file mode 100644
index 0000000..6d8ece9
--- /dev/null
+++ b/tests/lang/040.phpt
@@ -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===