PHP curl_strerror Function
(PHP 5 >= 5.5.0)
curl_strerror — Return the description of an error code.
Description
string curl_strerror ( int $errornum )
Returns the text description of an error code.
Parameters
errornum
A » cURL error codeconstants.
Return Value
Returns the error code description, or NULL for an invalid error code.
Example
The above example will output:
cURL error (1):
Unsupported protocol
PHP cURL Reference Manual