Problem Statement
What does the keyword $this refer to inside a class method?
Explanation
$this refers to the current object instance inside a class. It is used to access class properties or methods of that object.
Code Solution
SolutionRead Only
class User { public $name; function say(){ echo $this->name; } }