← All docs

curl_error()

Returns a string describing the last cURL error.

curl_error()

function curl_error(CurlHandle $handle): string

Returns a string describing the last cURL error.

Parameters:

  • $handle (CurlHandle)

Returns: string

Availability

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

Internals

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