Learn PHP: self vs. $this
Q: In PHP 5, what is the difference between using self and $this? A: Use $this to refer to the current object. Use self to refer to the current class. In other words, use $this->member for non-static members, use self::$member for static members. I recall that parent::member() is used to call a base class member […]
Continue Reading →