← All docs

curl_copy_handle()

Copies a cURL handle along with all of its preferences.

curl_copy_handle()

function curl_copy_handle(CurlHandle $handle): CurlHandle

Copies a cURL handle along with all of its preferences.

Parameters:

  • $handle (CurlHandle)

Returns: CurlHandle

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how curl_copy_handle is implemented in the compiler, see the internals page.