This works:
<?php
class A
{
public function example()
{
echo "This is class A.";
}
}
class B extends A
{
public function example()
{
parent::example();
}
}
class C
{
public function example()
{
$GLOBALS['b']->example();
}
}
$GLOBALS['b'] = new B();
$c = new C();
$c->example(); // outputs "This is class A."
?>
However, it is rather contrary to the philosophy and goals of OOP, in that depending on a global value creates a strong coupling between objects, when loose coupling should be your goal.
Perhaps you should look into making class B a singleton pattern, then get an instance of it within class C?