class myclass
{
var $hope;
function meyou()
{
$this->hope="future";
}
function printme()
{
echo "$this->hope";
}
}
Will it be true that the reason we use $this, is to make variable or object at class level so It can be accessed by any funtion with out having to pass it to that function as an argument?
{
var $hope;
function meyou()
{
$this->hope="future";
}
function printme()
{
echo "$this->hope";
}
}
Will it be true that the reason we use $this, is to make variable or object at class level so It can be accessed by any funtion with out having to pass it to that function as an argument?