class AC{
public $name;
function __construct($name)
{
$this->name = $name;
}
function getName()
{
return $this->name;
}
}
$string = 'abc=new AC("Example");';
$string contains a string which is used to call class AC.
I want to execute this function and call getName() function of AC class.