getASelf(); //调用方法返回当前实例. echo $a; //打印对象会调用它的__toString方法. ?>