<?php
class A
{
var $t;
function a()
{
$this->test();
}
function test()
{
$this->t =5;
}
}
class B extends A
{
function b()
{
echo 234;
//$this->a();
echo $this->t;
}
}
new B();
?>
<?php
class A
{
var $t;
function a()
{
$this->test();
}
function test()
{
$this->t =5;
}
}
class B extends A
{
function b()
{
parent::a();
echo 234;
echo $this->t;
}
}
new B();
?>