note 32384 deleted from function.call-user-func by aidan
| From: | aidan@php.net | Date: | Tue, 31 Aug 2004 06:55:29 +0000 |
| Subject: | note 32384 deleted from function.call-user-func by aidan | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-75716@lists.php.net to get a copy of this message | ||
Note Submitter: gabriel at bumpt dot net
----
In addition to the note by dougqh at hotmail dot com :
If you need to call a method of a class, and you don't have an instance of this class -- in
other words, the method is 'static' in the C++ meaning -- you can use the scope operator
:: on your class:
class MyClass
{
function MyStaticFunc()
{ ... }
}
//This calls the function on no particular instance.
//Warning: do not use $this in such a function,
//nor call any non-class-level function
//from within your class-level function.
MyClass::MyStaticFunc();