Discuz教程网

PHP获取类中常量,属性,及方法列表的方法

[复制链接]
authicon dly 发表于 2011-9-5 20:29:03 | 显示全部楼层 |阅读模式
代码如下:

  1. $r = new ReflectionClass($this);
  2. Zend_Debug::dump($r->getConstants(), "Constants");
  3. Zend_Debug::dump($r->getProperties(), "Properties");
  4. Zend_Debug::dump($r->getMethods(), "Methods");
复制代码






上一篇:一个PHP导出oracle库的PHP代码
下一篇:PHP xml实例 留言本
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 04:57

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表