← All docs

curl_strerror()

Returns string describing the given error code.

curl_strerror()

function curl_strerror(int $error_code): string

Returns string describing the given error code.

Parameters:

  • $error_code (int)

Returns: string

Availability

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

Internals

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