summaryrefslogtreecommitdiff
path: root/tests/basic/018.phpt
blob: da403b1d1aed744adcc34056b452e9cb482f5ffe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
--TEST--
POST Method test and arrays - 6 
--SKIPIF--
<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
--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]=>
    unicode(1) "1"
  }
  [1]=>
  array(1) {
    [0]=>
    unicode(1) "3"
  }
}
array(1) {
  [u"a"]=>
  array(1) {
    [u"b"]=>
    array(2) {
      [u"c"]=>
      unicode(1) "1"
      [u"d"]=>
      unicode(1) "1"
    }
  }
}