Hello guys...what is the difference between MyClass::method() and $this->method()?
thanks
Whats with all the what is the difference.... questions?
rtfm.
MyClass::method() calls the method() member function of the MyClass class, $this->method() calls the method() member function of the current class.
Oh, and to repeat my mantra: Read the PHP Manual on Classes and Objects (PHP 4) and Classes and Objects (PHP 5).
oh got it thanks 😉