summaryrefslogtreecommitdiff
path: root/tests/basic/018.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basic/018.phpt')
-rw-r--r--tests/basic/018.phpt34
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/basic/018.phpt b/tests/basic/018.phpt
new file mode 100644
index 0000000..45996b2
--- /dev/null
+++ b/tests/basic/018.phpt
@@ -0,0 +1,34 @@
+--TEST--
+POST Method test and arrays - 6
+--POST--
+a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1
+--FILE--
+<?php
+var_dump($_POST['a']);
+var_dump($_POST['b']);
+?>
+--EXPECT--
+array(2) {
+ [0]=>
+ array(1) {
+ [0]=>
+ string(1) "1"
+ }
+ [1]=>
+ array(1) {
+ [0]=>
+ string(1) "3"
+ }
+}
+array(1) {
+ ["a"]=>
+ array(1) {
+ ["b"]=>
+ array(2) {
+ ["c"]=>
+ string(1) "1"
+ ["d"]=>
+ string(1) "1"
+ }
+ }
+}