title: how to get whole data of html table using curl or macro
body: <p>I have tried this code but this gives me hyperlinks value only, but i want to extract all the data from table. My HTML table contains 1514 rows and 7 columns along with pagination its contains 125 number of pages to show. How can I get all data from the table and not just the hyperlinks?</p>
  
  <pre><code>  &lt;?php
  $ch=curl_init('https://datatables.net/examples/basic_init/alt_pagination.html');
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
      $page = curl_exec($ch);
  
      preg_match('#&lt;table[^&gt;]*&gt;(.+?)&lt;/table&gt;#is', $page, $matches);
      foreach ($matches as &amp;$match) {
           $match = $match;
  
      }
      echo '&lt;table&gt;';
          echo $matches[0];
      echo '&lt;/table&gt;';
      ?&gt;
  </code></pre>