Need help with foreach and XML
<p>I have the following output (via link) which displays the var_dump of some XML im generating:</p>

<p><a href="http://bit.ly/aoA3qY" rel="nofollow">http://bit.ly/aoA3qY</a></p>

<p>At the very bottom of the page you will see some output, generated by this code:</p>

<pre><code>foreach ($xml-&gt;feed as $entry) {
          $title = $entry-&gt;title;
          $title2 = $entry-&gt;entry-&gt;title;
        }
echo $title;
echo $title2;
</code></pre>

<p>For some reason $title2 only outputs once, where there are multiple entries?</p>

<p>Im using <code>$xml = simplexml_load_string($data);</code> to create the xml.</p>
