Merhaba. Bir kod buldum proxy çekiyor fakat kod sadece 1 tane proxy çekiyor. Bunu nasıl ayarlayabilirim. Teşekkürler.

function ProxyGetir()
{
$curl = curl_init();
$s = array(
CURLOPT_URL => "https://www.sslproxies.org", CURLOPT_REFERER => "https://google.com.tr",
CURLOPT_SSL_VERIFYPEER => false, CURLOPT_RETURNTRANSFER => FALSE,
CURLOPT_USERAGENT => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36",
CURLOPT_RETURNTRANSFER => TRUE, CURLOPT_FOLLOWLOCATION => TRUE,);
curl_setopt_array($curl,$s); $response = curl_exec($curl); curl_close($curl); $regex = '@(.*?)@si'; preg_match_all($regex,$response,$return);
$proxyAndPorts = $return[1];
$proxy = array(); $port = array(); $randomProxy = array(); $sayiFank = array();
for($i=0; $i < 400; $i+=4) {$proxy[] = $proxyAndPorts[$i];}
for ($i=1; $i < 400; $i+=4) {$port[] = $proxyAndPorts[$i];}
$merge = array_merge($proxy,$port);
for ($i=100; $i < 200; $i++) {$sayiFank[] = $i;}
for ($i=0; $i < 99 ; $i++){$randomProxy[] = $merge[$i].":".$merge[$sayiFank[$i]];}
return $randomProxy[rand(0,98)];
}
$proxylist = ProxyGetir();
echo str_repeat("$proxylist
", 10);
?>