Menu Riverview Church

CURL_STRERROR

Return string describing the given error code

SYNTAX

curl_strerror ( int $errornum ) : string

PARAMETERS

errornum

One of the cURL error codes constants.

RETURN

Returns error description or NULL for invalid error code.

EXAMPLES

cURL error 1: Unsupported protocol

PHP