Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我使用带有结构的 ajax 发布数据时
我从这里的代码中获取数据:
$_POST["post"];=> 结果是 979,没关系
$_POST["post"];
$_POST["href[href]"];=> 结果为 0,如何解决?
$_POST["href[href]"];
括号表示法用于创建数组条目。改用这个:
$_POST["href"]["href"];
调用$_POST["href"]将返回一个关联数组:
$_POST["href"]
array( 'commentID' => 297980913637729, 'href' => 'http://dongcam.vn/t3927' );
这是一个多维数组,所以: