get_class 返回对象的类名

get_class — 返回对象的类名

 

传一个对象,可以把这个对象的类名返回出来(字符串)

 

 

参考: http://php.net/manual/zh/function.get-class.php

posted @ 2018-10-11 15:18  与f  阅读(420)  评论(0)    收藏  举报