Skip to content

Instantly share code, notes, and snippets.

View javiermar's full-sized avatar
👾
Building

Javier Martinez javiermar

👾
Building
View GitHub Profile
@messified
messified / php-interview.md
Last active August 30, 2025 14:31
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