Rumah >pembangunan bahagian belakang >tutorial php > php post遍历有关问题
php post遍历问题
print_r($_REQUEST);
Array<br /> (<br /> [c] => pay2<br /> [cart] => 1<br /> [itemid] => Array<br /> (<br /> [0] => 103<br /> [1] => 104<br /> [2] => 105<br /> [3] => 106<br /> )<br /> <br /> [PHPSESSID] => rdkrfasknosmg58o1r1d9i6pf5<br /> )
<br /> <br /> foreach ($_REQUEST as $key => $value) <br /> {<br /> echo "Key: $key; Value: $value<br />\n";<br /> }<br />遍历不能遍历出itemid ,如何才能遍历成1,2,3这样