handlePre(); $obj->$a(); $obj->handlePost();'); } catch (Exception $e){ echo($e); }