title: PHP Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE
body: <p>I have this error on line 28 which is below.</p>
  
  <pre><code>private loadText() { $this-&gt;text = $wiki-&gt;getpage($this-&gt;page);}
  </code></pre>
  
  <p>The surrounding code can be seen below</p>
  
  <pre><code>public function parse() { $this-&gt;parser = new parser($page,$this-&gt;getText()); $this-&gt;parser-&gt;parse();}
  // private functions
  private loadText() { $this-&gt;text = $wiki-&gt;getpage($this-&gt;page);} 
  private parseNamespace(){...
  </code></pre>
  
  <p>I have can't see the problem and my only guess is that it is something to do with $this-></p>