php-src/tests/basic/017.phpt
2006-05-03 19:02:12 +00:00

20 lines
274 B
PHP

--TEST--
POST Method test and arrays - 5
--SKIPIF--
<?php if (php_sapi_name()=='cli') echo 'skip'; ?>
--POST--
a[]=1&a[a]=1&a[b]=3
--FILE--
<?php
var_dump($_POST['a']);
?>
--EXPECT--
array(3) {
[0]=>
string(1) "1"
["a"]=>
string(1) "1"
["b"]=>
string(1) "3"
}