Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Dinslinger90's full-sized avatar
🦍
Focusing

Dinslinger90 Dinslinger90

🦍
Focusing
  • Bangalore
View GitHub Profile
@Dinslinger90
Dinslinger90 / php-interview.md
Created September 7, 2019 17:12 — forked from messified/php-interview.md
PHP Engineer Interview: What you should know

PHP Developer Interview: What you should know

###1. What’s the difference between " self " and " this " ?

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.

Source: When to use self vs this -stackoverflow