当使用curl传递post数据时 , 数据的字段如果是个数组,就会报错Array to string conversion
在调用curl_setopt_array($curl, $options);
调用curl_setopt($ch, CURLOPT_POSTFIELDS, $data)
这两处地方都可能会报错 , 解决办法是把数据数组处理一下
http_build_query($data)
当使用curl传递post数据时 , 数据的字段如果是个数组,就会报错Array to string conversion
在调用curl_setopt_array($curl, $options);
调用curl_setopt($ch, CURLOPT_POSTFIELDS, $data)
这两处地方都可能会报错 , 解决办法是把数据数组处理一下
http_build_query($data)
[CPU] EPYC 9B14(最強 Zen4 EPYC 2.6GHz 96c)簡要上手感受 [複製鏈接] zlcrxp 電梯直達 1# 發表於 2024-1-31