Skip to content

Instantly share code, notes, and snippets.

Avatar
🦍
Focusing

Dinslinger90 Dinslinger90

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

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