$v) { $qs .= "$k=$v&"; } $qs.="from=".$from; $ch = curl_init(); $options = array( CURLOPT_URL=>$rurl."?".$qs, ); curl_setopt_array($ch, $options); curl_exec($ch); curl_close($ch); ?>