← All docs

curl_errno()

Returns the last error number for a cURL session.

curl_errno()

function curl_errno(CurlHandle $handle): int

Returns the last error number for a cURL session.

Parameters:

  • $handle (CurlHandle)

Returns: int

Availability

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

Internals

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