I have two functions in a class. What i need is something like this (This is incorrect)
class Home{
function one(){
$var1 = "abc";
}
function two(){
$var2 = $var1;
echo $var2; //This needs to output 'abc' for me.
}
}
Unfortunately, it is not working. Can somebody help me please.