curl_strerror

PHP 5 >= 5.5.0, PHP 7, PHP 8
curl_strerror - Return string describing the given error code
Manual
Code Examples

curl_strerror( int$error_code ): string|null

Returns a text error message describing the given error code.

Parameters

error_code

One of the cURL error codes constants.

Return Values

Returns error description or null for invalid error code.

Related Functions

Example of curl_strerror

Show all examples for curl_strerror

PHP Version: