Check from Constructor if function in child class exists?
- by ArneRie
Hi,
is it possible to do something like this in PHP 5.2.1?
abstract class Test
{
public function __construct()
{
if (function_exists('init'):
$this->init();
}
}
If i try this, the function on the subclass is not called?