title: getting PHP syntax error unexpected 'foreach' (T_FOREACH)
body: <p>I am trying to make a foreach code that automatically makes my header for my site. The idea is that as I add more pages I can just add them to the array and it will auto update the header for me. Usually my foreach'es work but for the first time I am having trouble. I tried it two ways, both of which spat out the same error.</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" href="css/header.css" /&gt;
  &lt;?php
  $page = array("index.php", "about.php");
  $names = array("Home", "About")
  
  
  foreach($names as $name){
      echo "&lt;a href=$page&gt; $name &lt;/a&gt;";
  }
  
  ?&gt;
  
  &lt;link rel="stylesheet" type="text/css" href="css/header.css" /&gt;
  &lt;?php
  $page = array("index.php", "about.php");
  $names = array("Home", "About")
  
  foreach($page as $pages){
      foreach($names as $name){
          echo "&lt;a href=$pages&gt; $name &lt;/a&gt;";
      }
  }
  ?&gt;
  </code></pre>