title: Using cURL in a foreach-loop (php)
body: <p>I have many HTTPS-URLS where I have to find a Special Phrase, so I´m trying to use cURL in a foreach Loop, but it´s not working. </p>
  
  <pre><code>...
  foreach($sites as $site) {
  
      $URL = $site;        
  
      $ch = curl_init();
      curl_setopt($ch, CURLOPT_URL, $url);
  
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  
      curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
      curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
  
      $response = curl_exec($ch);
      curl_close($ch);
  
  }
  
  print substr($response, $start, $i);
  ...
  </code></pre>
  
  <p>If I use just a single HTTPS-URL I get the Phrase, but inside a foreach-loop it´s not working.
  Can someone help me? (: </p>
  
  <p>Please excuse my poor english..</p>