I have an array like so:
Array
(
[level] => Array
(
[0] => Array
(
[lvlName] => name
[lvlEnt] => ent
)
)
[title] => Array
(
[0] => Array
(
[title] => a title
[titleDesc] => desc here
)
)
[navBar] => Products
[pageContent] => About
)
Can someone please tell me how to get the pageContent?
Here is the code that I am using but I am getting undefined indexes. I have no idea where I am going wrong.
foreach($bigArr as $key=>$val)
{
if($key['pageContent'] != null)
{
foreach($val as $fkey=>$fval)
{
echo $fkey['pageContent'];
}
}
}
The loops give me:
PHP Notice: Undefined index: pageContent
PHP Warning: Invalid argument supplied for foreach()
Can someone please give me a hand with this? Thanks
EDIT: The invalid argument is what has me perplexed.