Object question.
class a
{
function test()
{
echo 'hello 1';
}
function test2()
{
$this->test();
}
}
class b extends a
{
function test()
{
echo 'hello 2';
}
}
$obj = new b()
$obj->test2();
The above will print 'hello 2'. What can I put in the method 'test2' such that the above execution will print 'hello 1' instead of 'hello 2'?
I thought PHP would have some sort of special 'self::' keyword similar to the 'parent::' keyword