其他分享
首页 > 其他分享> > ReflectionClass

ReflectionClass

作者:互联网

文档地址

https://www.php.cn/php-weizijiaocheng-452063.html

  1. 使用反射类
  2. 2.使用反射类获取类的属性(使用反射类获取属性还用到一个反射类ReflectionProperty)

    

   3.判断属性是否是静态

    isStatic

  4.获取属性的值

   getValue

  5.获取属性名称

   getName

  6.设置属性访问

   setAccessible   

 

 

 

标签:反射,ReflectionClass,获取,ReflectionProperty,php,属性
来源: https://www.cnblogs.com/phpjason/p/16152252.html