1. <i id='z8J2U'><tr id='z8J2U'><dt id='z8J2U'><q id='z8J2U'><span id='z8J2U'><b id='z8J2U'><form id='z8J2U'><ins id='z8J2U'></ins><ul id='z8J2U'></ul><sub id='z8J2U'></sub></form><legend id='z8J2U'></legend><bdo id='z8J2U'><pre id='z8J2U'><center id='z8J2U'></center></pre></bdo></b><th id='z8J2U'></th></span></q></dt></tr></i><div id='z8J2U'><tfoot id='z8J2U'></tfoot><dl id='z8J2U'><fieldset id='z8J2U'></fieldset></dl></div>
      • <bdo id='z8J2U'></bdo><ul id='z8J2U'></ul>
      1. <small id='z8J2U'></small><noframes id='z8J2U'>

        <legend id='z8J2U'><style id='z8J2U'><dir id='z8J2U'><q id='z8J2U'></q></dir></style></legend>

        <tfoot id='z8J2U'></tfoot>

        PHP 中动态 mysqli bind_param 参数的简单解决方案是什

        时间:2023-07-29
      2. <i id='uUDKC'><tr id='uUDKC'><dt id='uUDKC'><q id='uUDKC'><span id='uUDKC'><b id='uUDKC'><form id='uUDKC'><ins id='uUDKC'></ins><ul id='uUDKC'></ul><sub id='uUDKC'></sub></form><legend id='uUDKC'></legend><bdo id='uUDKC'><pre id='uUDKC'><center id='uUDKC'></center></pre></bdo></b><th id='uUDKC'></th></span></q></dt></tr></i><div id='uUDKC'><tfoot id='uUDKC'></tfoot><dl id='uUDKC'><fieldset id='uUDKC'></fieldset></dl></div>
          <tbody id='uUDKC'></tbody>
      3. <small id='uUDKC'></small><noframes id='uUDKC'>

        • <tfoot id='uUDKC'></tfoot>

            <bdo id='uUDKC'></bdo><ul id='uUDKC'></ul>
            <legend id='uUDKC'><style id='uUDKC'><dir id='uUDKC'><q id='uUDKC'></q></dir></style></legend>

                  本文介绍了PHP 中动态 mysqli bind_param 参数的简单解决方案是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  为了动态构建 bind_param,我在其他 SO 帖子中找到了这个.

                  To build a bind_param dynamically, I have found this on other SO posts.

                  call_user_func_array(array(&$stmt, 'bindparams'), $array_of_params);
                  

                  有人可以用简单的英语为我分解一下吗?我特别迷惑,第一个参数是一个数组.

                  Can someone break this down in plain english for me? I get especially lost that the first argument is an array.

                  推荐答案

                  array($stmt, 'bindparams') 
                  

                  是 PHP 在对象 $stmt 上识别方法 bind_params 的方式,因为 PHP 5 你不再需要使用前面的 & (和 mysqli是 PHP 5 所以这在旧帖子中看起来像是一个小故障).

                  is PHP's way of identifying method bind_params on the object $stmt, since PHP 5 you don't need to use the & in front any longer (and mysqli is PHP 5 so this looks like a glitch in the older post).

                  你可以在这里看到一个类似的例子

                  所以

                  call_user_func_array(array($stmt, 'bindparams'), $array_of_params);
                  

                  基本上是指<​​/p>

                  basically means

                  $stmt->bind_params($array_of_params[0], $array_of_params[1] ... $array_of_params[N])
                  

                  这篇关于PHP 中动态 mysqli bind_param 参数的简单解决方案是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何使用 mysqli 与 SSL 连接 下一篇:使用php将阿拉伯语文本存储在mysql数据库中

                  相关文章

                  最新文章

                    <bdo id='ngMbH'></bdo><ul id='ngMbH'></ul>
                1. <small id='ngMbH'></small><noframes id='ngMbH'>

                2. <i id='ngMbH'><tr id='ngMbH'><dt id='ngMbH'><q id='ngMbH'><span id='ngMbH'><b id='ngMbH'><form id='ngMbH'><ins id='ngMbH'></ins><ul id='ngMbH'></ul><sub id='ngMbH'></sub></form><legend id='ngMbH'></legend><bdo id='ngMbH'><pre id='ngMbH'><center id='ngMbH'></center></pre></bdo></b><th id='ngMbH'></th></span></q></dt></tr></i><div id='ngMbH'><tfoot id='ngMbH'></tfoot><dl id='ngMbH'><fieldset id='ngMbH'></fieldset></dl></div>

                    <legend id='ngMbH'><style id='ngMbH'><dir id='ngMbH'><q id='ngMbH'></q></dir></style></legend>

                    <tfoot id='ngMbH'></tfoot>