You are here

public function Curl::setoptArray in reCAPTCHA 8.2

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

Parameters

resource $ch:

array $options:

Return value

bool

See also

http://php.net/curl_setopt_array

File

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

Class

Curl
Convenience wrapper around the cURL functions to allow mocking.

Namespace

ReCaptcha\RequestMethod

Code

public function setoptArray($ch, array $options) {
  return curl_setopt_array($ch, $options);
}