title: Curl with multithreading
body: <p>I am scraping data from an URL using cURL</p>
  
  <pre><code>for ($i = 0; $i &lt; 1000000; $i++) {
  
      $curl_handle = curl_init();
      curl_setopt($curl_handle, CURLOPT_URL, 'http://example.com?page='.$i);
      curl_exec($curl_handle);
      curl_close($curl_handle);
  
      // some code to save the HTML page on HDD
  }
  </code></pre>
  
  <p>I wanted to know if there is some way that I could speed up the process? Maybe multithreading? How could I do it?</p>