Hi,
Think of this code :
class some_class {
var $some_var;
function some_class() {
$this->some_var="some_val";
}
function do_stuff() {
function do_more_stuff() {
print($this->some_var);
}
}
}
and the problem is that the $some_var is not anymore known inside the do_more_stuff() function. Why does the scope of the "global" $some_var class variable not got to that function ?
I know that I could solve it by adding the var to the arguments of do_more_stuff() function, but in my context this is not possible !
Thanks for any help.