title: Data extraction using PHP
body: <p>I am new to PHP and got an assignment seems bit tough. I need to extract the price table from this page<a href="http://www.kieskeurig.nl/spiegelreflexcamera/nikon/d3200_body/prijzen/bezorgen/1052716#prijzen" rel="nofollow">http://www.kieskeurig.nl/spiegelreflexcamera/nikon/d3200_body/prijzen/bezorgen/1052716#prijzen</a></p>
  
  <p>So far I have done the code:</p>
  
  <pre><code>&lt;?php
  include('simple_html_dom.php');
  $url = 'http://www.kieskeurig.nl/spiegelreflexcamera/nikon/d3200_body/prijzen/bezorgen/1052716#prijzen';
  
  $html = file_get_html($url);
  
  foreach($html-&gt;find('table[id="priceTable"]') as $data) {
      foreach($data-&gt;find('img[width="150"]') as $d) {
          echo $d-&gt; alt. "&lt;br/&gt;";
      }
  }
  foreach($html-&gt;find('div[class="il"]') as $d1) {
      foreach($d1-&gt;find('a[rel="nofollow"]') as $d2) {
          echo $d2-&gt; innertext. "&lt;br/&gt;" ;
      }
  }
  ?&gt;
  </code></pre>
  
  <p>It gives me the result but I want shop name and respective price on the same row. It should look like the following:</p>
  
  <pre><code>Digitalstreet  € 332,00 
  
  Cameratop      € 332,00
  </code></pre>
  
  <p>But am getting the output as follow:</p>
  
  <pre><code>Digitalstreet
  Cameratop 
  € 332,00
  € 332,00
  </code></pre>
  
  <p>Can anybody please guide me with this.</p>