<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>

                **一.作用** #get\_debug\_type函數是對gettype函數的改進和嘗試. ~~~ gettype() get_debug_type() ~~~ **二.get\_debug\_type和gettype區別** #get\_debug\_type對面向對象的類型判斷更為精確. 1.標量類型 ~~~ string "Foo" array [1, 2] null null int 123 float 3.141 bool true ~~~ 2.類對象和匿名函數 ~~~ 類對象 new stdClass() 類對象 new DateTime() 類對象 new Foo\Bar() 函數閉包 function() {} 匿名類 new class {} 匿名子類 new class extends Foo{} ~~~ 3.資源類型 ~~~ 文件流 fopen(); ~~~ **三.實例代碼** 1.類對象 new Foo\\Bar() ~~~ namespace Foo; class Bar{} $foo=new Bar; var_dump(gettype($foo)); echo '<br>'; var_dump(get_debug_type($foo)); ~~~ 2.函數閉包 function() {} ~~~ $foo=function(){}; var_dump(gettype($foo)); echo '<br>'; var_dump(get_debug_type($foo)); ~~~ 3.匿名類 new class {} ~~~ $foo=new class{}; var_dump(gettype($foo)); echo '<br>'; var_dump(get_debug_type($foo)); ~~~ 4.匿名子類 new class extends Foo{} ~~~ class Foo{} $foo=new class extends Foo{}; var_dump(gettype($foo)); echo '<br>'; var_dump(get_debug_type($foo)); ~~~
                  <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>

                              哎呀哎呀视频在线观看