<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                #### **1、ClassName::class : 返回帶命名空間的完整的類名** ``` namespace think; class Test{ } var_dump(Test::class); ``` ##### **返回:** > "think\Test" #### **2、獲取某個文件夾下的文件:** ``` $files = glob($filePath . '*.php'); ``` #### **3、new self與 new static** >[info] self指向的是當前方法存在的這個類,也就是父類。static指向的是最終那個子類 ``` class Parent { public static function getParent() { return new self; } public static function getChild() { return new static; } } class Son extends Parent { } var_dump(Son::getParent(), PHP_EOL);//object(Parent)#1 (0) {} var_dump(Son::getChild(), PHP_EOL);//object(Son)#1 (0) {} ``` #### **4、self::ClassName 與 static::ClassName** >[info] self指向的是當前方法存在的這個類,也就是父類。static指向的是最終那個子類 ``` class Parent { public static function getParent() { return self::class; } public static function getChild() { return static::class; } } class Son extends Parent { } echo Son::getParent(), PHP_EOL;//parent echo Son::getChild(), PHP_EOL;//Son ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看