接收端是print_r($_POST);发送端写了一个curl提交post。$ch = curl_init();
curl_setopt_array($ch,array( CURLOPT_URL => 'http://myurl/abc.php',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS =>'name=abc&id=123')
);$content = curl_exec($ch);
print_r($content);
echo '<br>=========<br>';
echo $content['name'];打印出来的结果:Array(
[name] => abc
[id] => 123)=========A
- 2 回答
- 0 关注
- 112 浏览
添加回答
举报
0/150
提交
取消