title: PHP "parse error, expecting `T_STRING' " - Please help with code
body: <p>I'm trying to build a dynamic php site using MVC principles.  I'm using WAMP on Win XP.</p>
  
  <p>Here's the code:</p>
  
  <p>Index.php:</p>
  
  <pre><code>&lt;?php
    require_once("User.php");
    session_start();
    include ("Header.php");
    include ("Footer.php");
  ?&gt;
  </code></pre>
  
  <p>Header.php:</p>
  
  <pre><code>&lt;?php
    echo '&lt;?xml version="1.0" encoding="utf-8"?&gt;'
  ?&gt;
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"&gt;
  &lt;head&gt;
    &lt;title&gt;&lt;?php echo "temp"; ?&gt;&lt;/title&gt;
    &lt;link rel="stylesheet" media="screen" type="text/css" title="StyleSheetProjet" href="StyleSheetProjet.css" /&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;div class="connectionStatus"&gt;
      &lt;?php
      ?&gt;
    &lt;/div&gt;
  </code></pre>
  
  <p>Footer.php:</p>
  
  <pre><code>&lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>User.php:</p>
  
  <pre><code>&lt;?php
    class User {
      private $userName;
      private $hashedPassword;
      private $firstName;
      private $lastName;
      private $userEmail;
  
      function $getUserName() {
        return $this-&gt;userName;
      }
    }
  ?&gt;
  </code></pre>
  
  <p>This code causes a php error on line 9 of User.php, i.e., at the get function declaration.  The error message is:</p>
  
  <pre><code>Parse error: parse error, expecting `T_STRING' in C:\wamp\www\Projet\User.php on line 9
  </code></pre>
  
  <p>Help would be very much appreciated....</p>
  
  <p>Thanks,</p>
  
  <p>JDelage</p>