title: Get Particular Div Or Part Using PHP Curl
body: <pre><code>&lt;?php
  $url='http://yoursite.com'; // link for the site
  print_r(get_data($url)); //dumps the content, you can manipulate as you wish to
  
  /* gets the data from a URL */
  
  function get_data($url)
  {
  $ch = curl_init();
  $timeout = 5;
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
  curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout);
  $data = curl_exec($ch);
  curl_close($ch);
  return $data;
  }
  ?&gt;
  </code></pre>
  
  <p>The Above code is Fetching Whole Site data,How to echoa specific part of data modyfying this code..pls help</p>