Home >Backend Development >PHP Tutorial >求助:php内建类的资料

求助:php内建类的资料

WBOY
WBOYOriginal
2016-06-23 14:21:30863browse

php 类

求PHP5内建类的完整列表,谢谢!

回复讨论(解决方案)

print_r(get_declared_classes());

太好了,我试试,谢谢!

看到了类名,要看各类的属性、方法怎么做?有没有文档的?

搜索“php 反射”。

很好,搜索到了ReflectionClass,确实可以Export指定对象的属性和方法,但还要进一步消化消化,谢谢!

另外,用get_class_methods()和get_class_vars()倒也可以得到指定类的方法和属性

“php反射”这潭水对我这个初学的很深啊

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn