Help me understand how is $this used in PHP

gloldenowhoto

New Member
In plain English, how is \[code\]$this\[/code\] used in PHP?It's such a simple concept to me in JavaScript, but for some reason in PHP I can't get my head around this variable and its function. What, at any given point, is it referring to exactly? I have only tertiary experience with OOP, and I suspect that's why it's hard for me to understand its usage, but I'm trying to get better, and a lot of the code I examine uses this variable.
 
Back
Top