title: get table data with curl and regex
body: <p>this is my code to extract data from table.</p>
  
  <p>but I want delete links.</p>
  
  <p>and how pieces title and price to array.</p>
  
  <pre><code>&lt;?php
  
  $ch = curl_init ("http://www.digionline.ir/Allprovince/CategoryProducts/cat=10301");
  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  $match ;
  echo '&lt;/table&gt;';
  
  ?&gt;  
  </code></pre>