php array help. Getting the correct content
<p>I have an array like so:</p>

<pre><code>Array
(
    [level] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [lvlName] =&gt; name
                    [lvlEnt] =&gt; ent
                )

        )

    [title] =&gt; Array
        (
            [0] =&gt; Array
                (
                    [title] =&gt; a title
                    [titleDesc] =&gt; desc here
                )

        )

    [navBar] =&gt; Products
    [pageContent] =&gt; About
)
</code></pre>

<p>Can someone please tell me how to get the pageContent?</p>

<p>Here is the code that I am using but I am getting undefined indexes. I have no idea where I am going wrong.</p>

<pre><code>foreach($bigArr as $key=&gt;$val)
{
  if($key['pageContent'] != null)
  {
    foreach($val as $fkey=&gt;$fval)
    {
      echo $fkey['pageContent'];
    }
  }
}
</code></pre>

<p>The loops give me:</p>

<pre><code>PHP Notice:  Undefined index:  pageContent
PHP Warning:  Invalid argument supplied for foreach()
</code></pre>

<p>Can someone please give me a hand with this?
Thanks</p>

<p>EDIT:
The invalid argument is what has me perplexed.</p>
