title: How to download Source code of url and find specifice text
body: <p>I want to download source code from url and find out the specific text and store it into variables. </p>
  
  <p>Suppose I have url <code>http://www.homedepot.com/p/Ryobi-185-MPH-510-CFM-Gas-Backpack-Blower-RY08420A/203312654</code></p>
  
  <p>I want to download its source code and find out below text which is bottom of source code. 
  Also store each variable like <code>CI_Pagetype</code> , <code>CI_ItemID</code> in php variable so I can store it in csv file. </p>
  
  <pre><code>&lt;script&gt;
      var CI_Pagetype = 'PRODUCT';
      var CI_ItemID = '203312654';
      var CI_ItemName = '185 MPH 510 CFM Gas Backpack Blower';
      var CI_CatID = '556375';
      var CI_CatName = '';
      var CI_ItemPrice = $('#ciItemPrice').val();
      var CI_ItemMfr = 'Ryobi';
      var CI_ItemMfrNum = '573539';
      var CI_ItemUPC = '046396001122';
      var CI_ItemAvailability = $('#ciItemAvailability').val();
      var CI_ItemISBN = '';
      var CI_ItemShipWeight = '22';
  </code></pre>
  
  <p>Currently I can download source code using 
  file_get_contents(); </p>
  
  <p>But I am not sure how can I write regexp or extract that data.</p>
  
  <p>Please help me out to find solutions. </p>