note 15012 added to keyword.paamayim_nekudotayim.php
| From: | tim dot ward at stivesdirect dot com | Date: | Fri, 24 Aug 2001 10:34:40 +0000 |
| Subject: | note 15012 added to keyword.paamayim_nekudotayim.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-17066@lists.php.net to get a copy of this message | ||
If you call a function in this way then you need to be aware that internal class references will not
work (presumably as there isn't an instance for $this to refer to)
e.g.
>Class fred
>{ function fred()
> { $this->fred2();
> }
> function fred2()
> { echo("hello world");
> }
>}
>fred::fred();
... will cause a
"Fatal error: Call to a member function on a non-object in ..."
This took me ages to work out
http://www.php.net/manual/en/keyword.paamayim_nekudotayim.php