Debugging Arrays with echo (Php)
<p>I've a week off work so I'm keeping busy trying to learn php.</p>

<p>I want to check the contents of my array by printing out whats contrained in them.</p>

<pre><code>    foreach ($articleList as $item)
    {
        $this-&gt;articles[] = array(
                                    'url' =&gt; $this-&gt;domain . $item-&gt;getElementsByTagName('a')-&gt;item(0)-&gt;getAttribute('href'),
                'title' =&gt; $item-&gt;getElementsByTagName('a')-&gt;item(0)-&gt;nodeValue,
    //                              'author' =&gt; $item-&gt;getElementsByTagName('em')-&gt;item(0)-&gt;getElementsByTagName('a')-&gt;item(0)-&gt;nodeValue,
                'description' =&gt; $item-&gt;getElementsByTagName('div')-&gt;item(0)-&gt;nodeValue,
                'article' =&gt; ''
                                );
}

    foreach ($this-&gt;articles as $x)
    {
        echo $x;
    }
</code></pre>

<p>The code at the bottom is where I am trying to print out each piece of the array and see what contents it holds, So i can understand what the code above it is doing.</p>

<p>But its just blank even though the array size is 30.</p>

<p>How can I go about doing this?</p>

<p>Many Thanks,
-Code</p>
