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

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                [TOC] ## 代碼復用機制`trait` 旨在用細粒度和一致的方式來組合功能。 無法通過 trait 自身來實例化。它為傳統繼承增加了水平特性的組合;也就是說,應用的幾個 Class 之間不需要繼承 ``` <?php trait?ezcReflectionReturnInfo?{ ????function?getReturnType()?{?/\*1\*/?} ????function?getReturnDescription()?{?/\*2\*/?} } class?ezcReflectionMethod?extends?ReflectionMethod?{ ????use?ezcReflectionReturnInfo; ????/\*?...?\*/ } class?ezcReflectionFunction?extends?ReflectionFunction?{ ????use?ezcReflectionReturnInfo; ????/\*?...?\*/ } ?> ``` `trait`方式引入的類庫需要注意優先級,從基類繼承的成員將被`trait`插入的成員所覆蓋。優先順序是來自當前類的成員覆蓋了`trait`的方法,而`trait`則覆蓋了被繼承的方法。 `trait`類中不支持定義類的常量,在`trait`中定義的屬性將不能在當前類中或者繼承的類中重新定義。 為了解決多個`trait`在同一個類中的命名沖突,需要使用`insteadof`操作符來明確指定使用沖突方法中的哪一個。 以上方式僅允許排除掉其它方法,`as`操作符可以將其中一個沖突的方法以另一個名稱來引入。 ## xdebug 1. 點擊[xdebug](https://xdebug.org/download.php)下載插件(php版本、位數、VC版本、線程安全要對應) ![](https://i.vgy.me/JHlIpD.png) 2. 修改php.ini配置文件 ``` [Xdebug] zend_extension="E:\IM\im_webserver\php\ext\php_xdebug-2.5.5-5.6-vc11.dll" xdebug.idekey = "vagrant" xdebug.default_enable = 1 xdebug.remote_connect_back = 1 xdebug.remote_port = 9001 xdebug.remote_enable = 1 xdebug.remote_autostart = 1 xdebug.remote_handler="dbgp" ``` ![](https://i.vgy.me/BucSQO.png) ![](https://i.vgy.me/PffE4p.png)![](https://i.vgy.me/nXaMMW.png) ## 獲取本機ipve地址 ``` $ip = gethostbynamel($_ENV['COMPUTERNAME']); $ip = $ip[count($ip) - 1]; ``` ## static ~~~ class a { protected $a = ""; public function __construct($msg) { $this->a = $msg; } public static function echo1($msg) { $static = new static($msg); print_r($static->a); } } a::echo1('333'); ~~~ ## 交換變量值 `[$a, $b] = [$b, $a];` ## 查看配置文件位置 ```php --ini``` ## 查看php編譯安裝的參數 ```php -i | grep Configure```
                  <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>

                              哎呀哎呀视频在线观看