array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.curl-multi-getcontent.php', 1 => 'curl_multi_getcontent', 2 => 'Return the content of a cURL handle if CURLOPT_RETURNTRANSFER is set', ), 'up' => array ( 0 => 'ref.curl.php', 1 => 'Функції cURL', ), 'prev' => array ( 0 => 'function.curl-multi-exec.php', 1 => 'curl_multi_exec', ), 'next' => array ( 0 => 'function.curl-multi-info-read.php', 1 => 'curl_multi_info_read', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/curl/functions/curl-multi-getcontent.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

curl_multi_getcontent

(PHP 5, PHP 7, PHP 8)

curl_multi_getcontentReturn the content of a cURL handle if CURLOPT_RETURNTRANSFER is set

Опис

curl_multi_getcontent(CurlHandle $handle): ?string

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.

Параметри

ch

cURL-дескриптор, якого повертає curl_init().

Значення, що повертаються

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

Журнал змін

Версія Опис
8.0.0 handle тепер має бути примірником класу CurlHandle; раніше очікувався resource.

Прогляньте також