← All docs

curl_share_setopt()

Sets an option for a cURL share handle.

curl_share_setopt()

function curl_share_setopt(CurlShareHandle $share_handle, int $option, mixed $value): bool

Sets an option for a cURL share handle.

Parameters:

  • $share_handle (CurlShareHandle)
  • $option (int)
  • $value (mixed)

Returns: bool

Availability

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

Internals

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