curl_multi_getcontent

(PHP 5, PHP 7)

curl_multi_getcontentReturn the content of a cURL handle if CURLOPT_RETURNTRANSFER is set

Description

curl_multi_getcontent ( CurlHandle $handle ) : string|null

If CURLOPT_RETURNTRANSFER is an option that is set for a specific handle, then this function will return the content of that cURL handle in the form of a string.

Parameters

handle

A cURL handle returned by curl_init().

Return Values

Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set.

Changelog

Version Description
8.0.0 handle expects a CurlHandle instance now; previously, a resource was expected.

See Also

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.curl-multi-getcontent.php