Getting random urls from google and storing them into array
<p>I need to check the connection time to some url, i do it using <em>curl</em> (i only know how to do it for 1 url at the time tho, my problem is that i need to check it for many urls, not just 1)</p>

<p>Here is an example of how i calculate the connection time:</p>

<pre><code>$url1 = 'stackoverflow.com';
$curl1 = curl_init();
curl_setopt($curl1, CURLOPT_URL, $url1);
curl_setopt($curl1, CURLOPT_RETURNTRANSFER, TRUE);
curl_exec($curl1);
$contime1 = curl_getinfo($curl1, CURLINFO_CONNECT_TIME);
echo $contime1;
</code></pre>

<p>now lets say instead of 'stackoverflow.com' url i wanted to use multiple urls, like this array list for example:</p>

<pre><code>$imones = array ("php.net","w3schools.com", "stackoverflow.com");
while (list(, $value) = each($imones)) {
$imoneslist = "$value&lt;br /&gt;\n";
</code></pre>

<p>how do i put $imoneslist array into $url1?</p>
