You are here

public function Curl::init in reCAPTCHA 8.2

Same name and namespace in other branches
  1. 6.2 recaptcha-php/src/ReCaptcha/RequestMethod/Curl.php \ReCaptcha\RequestMethod\Curl::init()
  2. 7.2 recaptcha-php/src/ReCaptcha/RequestMethod/Curl.php \ReCaptcha\RequestMethod\Curl::init()

Parameters

string $url:

Return value

resource cURL handle

See also

http://php.net/curl_init

File

recaptcha-php/src/ReCaptcha/RequestMethod/Curl.php, line 40

Class

Curl
Convenience wrapper around the cURL functions to allow mocking.

Namespace

ReCaptcha\RequestMethod

Code

public function init($url = null) {
  return curl_init($url);
}