When to use self over $this?

DWQA QuestionsCategory: Web Design HTMLWhen to use self over $this?
Editor Staff asked 2 weeks ago

When to use self over $this?

1 Answers
Editor Staff answered 2 weeks ago

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