Func Curl_Strerror
# PHP curl_strerror Function
[ PHP cURL Reference](#)
(PHP 5 >= 5.5.0)
curl_strerror β Returns the description of an error code.
* * *
## Description
string curl_strerror ( int $errornum )
Returns the textual description of the error code.
* * *
## Parameters
**errornum**
A constant from the [Β» cURL error codes](http://curl.haxx.se/libcurl/c/libcurl-errors.html).
* * *
## Return Value
Returns the error code description, or NULL for invalid error codes.
* * *
## Example
The above example will output:
cURL error (1): Unsupported protocol
* * PHP cURL Reference](#)
YouTip