How can I access static php variable with custom class name. In class c1 method hi() I need to access static variable of its child class. PHP < 5.3
class c1{
function hi(){
$cn=get_class($this);
echo $cn::$b; //need echo 5 here, but error
}
}
class c2 extends c1{
static public $b=5;
}
$c2=new c2();
$c2->hi();