public function addURL($url,$options=array()) {
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        foreach($options as $option=>$value) {
            curl_setopt($ch, $option, $value);
        }
        return $this->addCurl($ch);
    }
public function addURL($url,$options=array()) {
        $ch = curl_init($url);
        curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
        foreach($options as $option=>$value) {
            curl_setopt($ch, $option, $value);
        }
        return $this->addCurl($ch);
    }
public function addURL ( $ url , $ options = array ( ) ) { $ ch = curl_init ( $ url ) ; curl_setopt ( $ ch , CURLOPT_RETURNTRANSFER , 1 ) ; foreach ( $ options as $ option => $ value ) { curl_setopt ( $ ch , $ option , $ value ) ; } return $ this -> addCurl ( $ ch ) ; }
simplifies example and allows for additional curl options to be passed in via array
simplifies example and allows for additional curl options to be passed in via array