here's an example piece of code:
class A
{
function hello()
{
echo "Hello from class A";
}
}
class B
{
var my_A;
function B
{
my_A = new A;
}
}
$myB = new B;
Does anyone know how to access the hello() function of $myB->my_A; ?? As i know that:
$myB->my_A->hello();
does not work 🙁
Thanks