$this $this

no-email (Damien Seguy), Damien Seguy
Thu, 28 Mar 2024 00:00:00 +0000

$this is the pseudo-variable that represents the current object. It is also a variable, like others, and may be used to describe a dynamic property.
Since a property must be described as a string, it is possible to use the magic method __toString() to convert the object into a string, and map an existing property.