2012年9月19日
摘要: 当使用curlpost一个请求的话,一般代码如下:$ch = curl_init();curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_POST, 1);curl_setopt($ch, CURLOPT_POSTFIELDS, $data);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);当这里传递的$data如果是标准的一个phparray对象的话,如果array有嵌套,比如array(a=>array(5))的话,接受到的对象就会变成 array(a => Array 阅读全文
posted @ 2012-09-19 11:01 Rik~ 阅读(1627) 评论(0) 推荐(0)