(PHP 5, PHP 7, PHP 8)
curl_multi_add_handle — Add a normal cURL handle to a cURL multi handle
curl_multi_add_handle(CurlMultiHandle $multi_handle, CurlHandle $handle): int
Adds the handle handle to the multi handle multi_handle
multi_handle A cURL multi handle returned by curl_multi_init().
handle A cURL handle returned by curl_init().
Returns 0 on success, or one of the CURLM_* errors code.
| Version | Description |
|---|---|
| 8.0.0 | multi_handle expects a CurlMultiHandle instance now; previously, a resource was expected. |
| 8.0.0 | handle expects a CurlHandle instance now; previously, a resource was expected. |
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.curl-multi-add-handle.php