Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

PHP curl_strerror Function

PHP curl_strerror Function

PHP Calendar Reference Manual PHP cURL Reference Manual

(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 Calendar Reference Manual PHP cURL Reference Manual