title: get partial result in foreach loop PHP
body: <p>With below code</p>
  
  <pre><code>foreach($dom as $result){
  echo $result;
  }
  </code></pre>
  
  <p>I got the result like this</p>
  
  <pre><code>title
  description
  
  title
  description
  
  title
  description
  </code></pre>
  
  <p>Where title are links, how can I get the url of the first item?</p>