I'm a beginner PHP developer and I came across a term in my code that I'm not quite familiar with - the variable "$this". I have seen it used in different parts of the code, but I'm not entirely sure what it represents and how it works.
Could someone please explain to me what the variable "$this" means in PHP? I would appreciate it if you could provide me with some examples to help me better understand its usage in different scenarios.
Thank you in advance!