Anonymous
public text v1 · immutable<?php
class A
{
function A1()
{
return "A1";
}
function A2()
{
return "A2";
}
}
class B
{
function B()
{
$this->A = new A();
}
function B1()
{
return $this->A->A1();
}
function B2()
{
return $this->A->A2();
}
}
$B = new B();
echo $B->B1();
echo $B->B2();
?>