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

          常用鏈接

          留言簿

          隨筆分類(75)

          隨筆檔案(78)

          相冊

          實用Links

          我的Links

          搜索

          •  

          積分與排名

          • 積分 - 114335
          • 排名 - 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
          主站蜘蛛池模板: 镇江市| 济阳县| 资源县| 景宁| 尖扎县| 景洪市| 临沂市| 东乡县| 江安县| 军事| 建宁县| 衡阳市| 新竹市| 福州市| 九江市| 南丰县| 郴州市| 江门市| 开封市| 延津县| 杭州市| 新竹县| 内江市| 无锡市| 土默特右旗| 竹山县| 武川县| 盐源县| 怀远县| 甘孜县| 金坛市| 扶绥县| 武乡县| 云梦县| 洛扎县| 屏东市| 灯塔市| 古丈县| 清新县| 榆中县| 西乌珠穆沁旗|