Hi,
The following works as expected:
foreach($menuarray as $check)
{
echo $check["link"] . '<br>';
}
but when incorporated into a function:
menu();
function menu()
{
foreach($menuarray as $check)
{
echo $check["link"] . '<br>';
}
}
doesn't work and an error message is displayed
"Warning: Invalid argument supplied for foreach() in /Library/WebServer/Documents/muscles.php on line 68"
Why?
note: $menuarray is loaded and ready to go, but the foreach statement is where I first mention $check.
Thank you, A.