首页 / PHP / oop-PHP:如何在调用$obj->some_attr之前自动调用$obj->some_func()