title: Simple HTML DOM, finding links recurssively
body: <p>I am using <a href="http://simplehtmldom.sourceforge.net/" rel="nofollow">simple html dom</a> to find links on a certain page using:</p>
  
  <pre><code>// Find all links
  foreach($html-&gt;find('a') as $element)
         echo $element-&gt;href . '&lt;br&gt;'; 
  </code></pre>
  
  <p>This find all the links on the page, however i want to be able to go to found links
  as well and find links <em>inside</em> those found links recursively for example to level 5.</p>
  
  <p>Any idea of how to go about?</p>