public function setOptionsArray($options) {
    foreach($options as $key => $value) {
      if (!$this->setOption($key, $value)) {
        return false;
      }
    }
    return true;
  }
public function setOptionsArray($options) {
    foreach($options as $key => $value) {
      if (!$this->setOption($key, $value)) {
        return false;
      }
    }
    return true;
  }
public function setOptionsArray ( $ options ) { foreach ( $ options as $ key => $ value ) { if ( ! $ this -> setOption ( $ key , $ value ) ) { return false ; } } return true ; }
Set cURL options using an array.

@param mixed $options An associative array of cURL options and their
respective values.
@returns boolean True if all values could be set, false otherwise.
Set cURL options using an array .