卷曲,有一个参数curlopt_returntransfer:
复制代码代码如下:curl_setopt($ CH,curlopt_returntransfer,0);
默认是一个文本流,它直接返回所得到的输出的0,有时使用返回值判断或做其他用途是不好的。

幸运的是,curlopt_returntransfer可设置,如果设置为curlopt_returntransfer 1:
复制代码代码如下:curl_setopt($ CH,curlopt_returntransfer,1);
然后你可以使用curl_multi_getcontent($ CH)的curl_close关闭会话前曲。
您可以将服务器的值返回给我们,这是一个字符串类型!
PHP手册如下:
复制代码如下:curl_multi_getcontent(资源为CH)
If CURLOPT_RETURNTRANSFER is set as an option to a specific handle, this function will return the content obtained by the cURL handle in string form.