curl_setopt($ci, CURLOPT_HTTPHEADER, $headers);
我们的 $headers 一般会这么写
//错误示范 二维数组
$headers = [
"Content-Type" => "application/json",
"X-Requested-With" => "XMLHttpRequest",
];
//正确写法
$headers = [
"Content-Type:application/json",
"X-Requested-With:XMLHttpRequest",
];
1万+




被折叠的 条评论
为什么被折叠?



