Skip to content

Instantly share code, notes, and snippets.

View mahendra12345's full-sized avatar

mahendra12345

View GitHub Profile
@mahendra12345
mahendra12345 / php-interview.md
Created July 1, 2024 05:15 — 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

console.log("this is my second gist file")