I am deciphering someone's code and am seeing the following

function getsomething() {
return $this->_something;
}

Since I am new to PHP, I don't understand the reference to "$this->" I cannot seem to find to find it using a search. I am finding a series of these in a class.

Can someone give me a pointer?

Thanks

RevJoe

    http://www.php.net/manual/en/language.oop.php

    Have fun 😃

    [EDIT]Maybe I should have been less brief. $this-> is how a class object refers to itself within the class. The OOP page talks a little more about it, if I try to be any less brief I will probably just get confusing.[/EDIT]

      Many Thanks. I'll check out the link.

        Write a Reply...