调用对象的方法
class book { function getName() { return 'bookname'; } } $func = 'getName'; $book = new book(); $book->$func(); new book()
class book { function getName() { return 'bookname'; } } $func = 'getName'; $book = new book(); $book->$func(); new book()
2016-12-19
举报