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

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                [TOC] > [php-cpp home](http://www.php-cpp.com/documentation/loading-extensions) ## 概述 ### 特性 * 很快 用C++編寫的代碼很快:比用PHP編寫的代碼快得多。 * 簡單 用C++編寫的算法看起來幾乎與用PHP編寫的算法相同。 * 無需Zend引擎知識 * 完善的文檔 * 支持所有重要的PHP功能 使用PHP-CPP,你可以像使用普通的PHP腳本一樣輕松地處理變量、數組、函數、對象、類、接口、異常和命名空間。除此之外,你還可以使用C++的所有功能,包括線程,lambdas和異步編程。 * 免費的 ### 支持php 低版本 [php-cpp-legacy](https://github.com/CopernicaMarketingSoftware/PHP-CPP-LEGACY) 支持php5.6 舊版本 [php-cpp](https://github.com/CopernicaMarketingSoftware/PHP-CPP) 僅支持php7 HP-CPP和PHP-CPP-LEGACY庫具有(幾乎)相同的API,因此您可以輕松地將PHP 5.*的擴展移植到PHP 7,反之亦然 ## hello word ``` // 聲明無參函數 Php::Value hello_world() { return "hello world!"; } // 添加到擴展 extension.add("hello_world", hello_world); ``` ``` // 聲明有參函數 Php::Value my_plus(Php::Parameters &params) { return params[0] + params[1]; } // 添加到擴展 extension.add("my_plus", my_plus, { Php::ByVal("a", Php::numericType), Php::ByVal("b", Php::numericType) }); ``` ``` Php::Value get_complex_array() { Php::Value r; r["a"] = 123; r["b"] = 456; r["c"][0] = "nested value"; r["c"][1] = "example"; return r; } function get_complex_array() { return array( "a" => 123, "b" => 456, "c" => array("nested_value","example") ); } ``` ## 技巧
                  <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>

                              哎呀哎呀视频在线观看