title: How to use curl and an array of URLs together
body: <p>I found this code that does what I'm looking for on a single domain check. But I have a list of URLs that I would like to check. 
  Can you and how would you create an array with curl?</p>
  
  <pre><code>$url = 'http://www.example.com';
  $ch = curl_init($url);
  curl_setopt($ch, CURLOPT_HEADER, true);    // we want headers
  curl_setopt($ch, CURLOPT_NOBODY, true);    // we don't need body
  curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
  curl_setopt($ch, CURLOPT_TIMEOUT,10);
  $output = curl_exec($ch);
  $httpcode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
  curl_close($ch);
  
  echo 'HTTP code: ' . $httpcode;
  </code></pre>