隨筆 - 78  文章 - 25  trackbacks - 0
          <2009年6月>
          31123456
          78910111213
          14151617181920
          21222324252627
          2829301234
          567891011

          常用鏈接

          留言簿

          隨筆分類(75)

          隨筆檔案(78)

          相冊

          實用Links

          我的Links

          搜索

          •  

          積分與排名

          • 積分 - 114363
          • 排名 - 515

          最新評論

          閱讀排行榜

          評論排行榜

          反射類ReflectionClass,其中包含的方法可以通過下面的方法獲取:示例如下。

          <?php
              $class=new ReflectionClass("ReflectionClass");
              $methods=$class->getMethods();
              foreach($methods as $method)
                  echo $method->getName()."<br>"; 
          ?>

          運行結果如下:
          __clone
          export
          __construct
          __toString
          getName
          isInternal
          isUserDefined
          isInstantiable
          getFileName
          getStartLine
          getEndLine
          getDocComment
          getConstructor
          hasMethod
          getMethod
          getMethods
          hasProperty
          getProperty
          getProperties
          hasConstant
          getConstants
          getConstant
          getInterfaces
          getInterfaceNames
          isInterface
          isAbstract
          isFinal
          getModifiers
          isInstance
          newInstance
          newInstanceArgs
          getParentClass
          isSubclassOf
          getStaticProperties
          getStaticPropertyValue
          setStaticPropertyValue
          getDefaultProperties
          isIterateable
          implementsInterface
          getExtension
          getExtensionName


          posted on 2009-06-28 15:00 期待明天 閱讀(634) 評論(0)  編輯  收藏 所屬分類: PHP
          主站蜘蛛池模板: 通海县| 镶黄旗| 上犹县| 宁强县| 古蔺县| 沙河市| 沙雅县| 六安市| 广南县| 广灵县| 玉环县| 庆云县| 定西市| 志丹县| 富蕴县| 阿瓦提县| 杂多县| 沙河市| 赤水市| 五华县| 辽宁省| 石柱| 兰州市| 平度市| 柳河县| 从江县| 丰顺县| 临沭县| 景宁| 抚州市| 伊通| 蛟河市| 临朐县| 改则县| 仙居县| 英德市| 东乌| 巴彦淖尔市| 丰台区| 呼伦贝尔市| 县级市|