2

I have this error on line 28 which is below.

private loadText() { $this->text = $wiki->getpage($this->page);}

The surrounding code can be seen below

public function parse() { $this->parser = new parser($page,$this->getText()); $this->parser->parse();}
// private functions
private loadText() { $this->text = $wiki->getpage($this->page);} 
private parseNamespace(){...

I have can't see the problem and my only guess is that it is something to do with $this->

4
  • 3
    Everytime I read "PHP Parse error" in the title of a SO-question I think to myself: "Why don't you use an IDE?" So, why don't you use and IDE, that marks syntax error right in the editor pane? Commented Jan 23, 2013 at 22:43
  • what PHP IDE would you suggest? Commented Jan 23, 2013 at 22:45
  • Any ;) It's completely up to you. I don't know a PHP-IDE, that is not able to find syntax errors. So there are (probably incomplete) Eclipse/PDT, Netbeans, PhpStorm (my personal favorite) and many others I don't remember yet. Commented Jan 23, 2013 at 22:49
  • Aptana Studio 3 is awesome Commented Oct 6, 2015 at 14:18

1 Answer 1

19

Your forgot function after every private-keyword. Interestingly you did it right for the one public method.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.