I know this is going to be voted as a bad question but I always have trouble with these. I am making a php navigation using arrays and my code keeps falling short, mainly in foreach statements. Hopefully if you look you can see where I am trying to go
<html>
<head>
<title>navigation</title>
<?php
$pages = array("index.html" => "Home");
?>
</head>
<body>
<ul>
<?php
foreach($pages as $link => $page){
echo '<li> <a href=" $link "> $page </a> </li>';
}
?>
</ul>
</body>
</html>