Troubleshooting unexpected T_PUBLIC error
<p>I get this error...  </p>

<blockquote>
  <p>Parse error:syntax error, unexpected T_PUBLIC in C:\filename here on line 12</p>
</blockquote>

<p>On this line....</p>

<pre><code>public static function getInstance(){
</code></pre>

<p>The code...</p>

<pre><code>&lt;?PHP
class Session{

 private static $instance;

 function __construct() {
 {
  session_start();
  echo 'Session object created&lt;BR&gt;&lt;BR&gt;';
 }

 public static function getInstance(){
  if (!self::$instance) {
   self::$instance = new Session();
  }
  return self::$instance;
 }
}
</code></pre>
