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
September 17, 2009 at 5:07 pm
#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.