int curl_errno ( resource $ch )
Returns the error number for the last cURL operation.
Returns the error number or 0 (zero) if no error occurred.