curl_multi_getcontent

(PHP 5, PHP 7, PHP 8)

curl_multi_getcontent如果设置了 CURLOPT_RETURNTRANSFER,则返回 cURL 句柄的内容

说明

curl_multi_getcontent(CurlHandle $handle): ?string

如果 CURLOPT_RETURNTRANSFER 是为指定句柄设置的选项,则此函数将会以字符串的形式返回 cURL 句柄的内容。

参数

handle

curl_init() 返回的 cURL 句柄。

返回值

如果设置了 CURLOPT_RETURNTRANSFER,则返回 cURL 句柄的内容,不设置的话返回 null

更新日志

版本 说明
8.0.0 handle expects a CurlHandle instance now; previously, a resource was expected.

参见

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top