I have a php class and variable as follows:
class Test(){
function fun(){
$a= 0;
$b = 5;
$sum = $b+c;
return sum;
}
}
I can access the $sum
from outside as follows:
$obj = new Test();
echo $obj->fun();
How can I access the value of $b
from outside class?