xref: /php-src/tests/basic/018.phpt (revision d7a3edd4)
1--TEST--
2POST Method test and arrays - 6
3--POST--
4a[][]=1&a[][]=3&b[a][b][c]=1&b[a][b][d]=1
5--FILE--
6<?php
7var_dump($_POST['a']);
8var_dump($_POST['b']);
9?>
10--EXPECT--
11array(2) {
12  [0]=>
13  array(1) {
14    [0]=>
15    string(1) "1"
16  }
17  [1]=>
18  array(1) {
19    [0]=>
20    string(1) "3"
21  }
22}
23array(1) {
24  ["a"]=>
25  array(1) {
26    ["b"]=>
27    array(2) {
28      ["c"]=>
29      string(1) "1"
30      ["d"]=>
31      string(1) "1"
32    }
33  }
34}
35