【发布时间】:2016-05-02 05:50:53
【问题描述】:
我有以下代码:
// $postfields = array();
curl_setopt($ch, CURLOPT_POSTFIELDS, $postfields);
我的$postfields 变量是一个参数数组。我注意到有数组到字符串的转换。它确实有效。
我可以使用http_build_query() 函数来取消通知,但是我使用@path_to_file 来包含发布文件。和http_build_query() 中断文件包括。
我想知道是否有更多“正确”的方法可以做到这一点。不生成通知。
【问题讨论】:
标签: php arrays curl libcurl notice