Menu Riverview Church

CURL_ERRNO

Return the last error number

SYNTAX

curl_errno ( resource $ch ) : int

PARAMETERS

ch

A cURL handle returned by curl_init().

RETURN

Returns the error number or 0 (zero) if no error occurred.

EXAMPLES

1

6

2

Could not resolve host: nonexistent.osbo.com

PHP