如果这是Request的vam转储(var_dump($ _ REQUEST);):
array(1) {
["gift_edit"]=>
array(11) {
["name"]=>
string(19) "IBM da colezionista"
["description"]=>
string(0) ""
["validbegin"]=>
array(3) {
["day"]=>
string(2) "31"
["month"]=>
string(1) "1"
["year"]=>
string(4) "2013"
}
["validend"]=>
array(3) {
["day"]=>
string(1) "3"
["month"]=>
string(1) "3"
["year"]=>
string(4) "2015"
}
["redemption"]=>
string(13) "1234567888844"
["points"]=>
string(4) "1200"
["price"]=>
string(4) "6000"
["discount"]=>
string(2) "20"
["codelist"]=>
string(33) "unoperibm
dueperibm
treperibm
"
["amount"]=>
string(0) ""
["_token"]=>
string(40) "f2389c3d302630a624c10660aac218d279953d06"
}
}
如何检索代码列表?
答案 0 :(得分:4)
$_REQUEST['gift_edit']['codelist']
或$_POST['gift_edit']['codelist']
。
答案 1 :(得分:1)
您可以使用以下代码访问它。
$_REQUEST['gift_edit']['codelist']
答案 2 :(得分:1)
尝试:
$test = $_REQUEST['gift_edit']['codelist'];