Mega Code Archive
Define class helper class to check the method existance
classA = $classA;
}
function __call( $method, $args ) {
if ( method_exists( $this->classA, $method ) ) {
return $this->classA->$method( );
}
}
}
$tool= new Helper( new A() );
print_r( $tool->getA() );
?>