I am trying to dynamically generate some menus, but having problems acessing my variables.
I have an array called $company_pages which contains the names of sub pages in the category of "company".
The name of the category (company) is held in the variable $page
I try to access my array on the page by setting a new variable :
$section= "$". $page . "_pages";
so that $section = $company_pages .
The problem is $section[0] =c
$section[0] =o
$section[0] =m etc. because $section is really the string "company pages" --How can I make is reference my array?
Thank you!
Patty