When creating class variables, you cannot assign it a value. What you should do is assign the value in the constructor:
class _myclass {
var $a;
// some funcs here
}
later I do:
$b = "YeePee";
class myclass extends _myclass {
function myclass() {
$this->a = $b;
}
}
Also: what is the scope of $b? Where are you defining it? I believe that is where your problem lies.
Hope that helps:
Chris King