Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End What do you call php variables like this: $this->hello Re: What do you call php variables like this: $this->hello

#64313
Argeaux
Participant

You use this when you access a variable which is set in a class. These variables are called properties of a class.

$this-> stands for a property in the current class you are working in. and hello for the name.

Code:

So in the example above $this->hello stands for ‘hello doug’.

Its used in objective oriented programming in php (or short: OOP).
So maybe you can find more info with those words.