get_class 返回对象的类名

get_class — 返回对象的类名

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

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

猜你喜欢

转载自www.cnblogs.com/fps2tao/p/9772587.html