Hi
I have been trying to create a system whereby there are a whole load of variables defined in the head of a page (that can be added and removed) and are used when the correct page is called.
I am having trouble with creating the arrays.
The concept,
$navigation has
"home" has the link text "Home", the link "index.php" and the subnavigation links "sub1.php" and "sub2.php".
"about" has the link text "About", the link "about.php" and the subnavigation links "sub3.php" and sub4.php".
On the page where the navigation is, there is to be a function which cycles through the arrays only relevant to that page. So, if I was on "about.php" then the "About" link would be bold and the sub-navigation would display and the same for the "Home" link.
I have searched many webpages but have found no real solution.
I thought it would be something like:
$navigation = array (
"Home => array(
"Home",
"index.php",
"subnavigation => array("sub1.php, "sub2.php")
));
And then a foreach $navigation as $nav { echo "(not sure what to put here)"; }
Is there a clarifying tutorial someplace or somebody able to comment on this please?