我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

为什么PHP会弃用mysqli_stmt __construct

From the docs

mysqli_stmt::__construct ( mysqli $link [, string $query ] )

Note:

In general, you should use either mysqli_prepare() or mysqli_stmt_init() to create a mysqli_stmt object, rather than directly instantiating the object with new mysqli_stmt. This method (and the ability to directly instantiate mysqli_stmt objects) may be deprecated and removed in the future.

But why would they want to do that? Wouldn't that break inheritance (you couldn't extend mysqli_stmt)?

近期文章

  • 如何在laravel 5中使用return back() - > withInput()
  • 外键在laravel 5.4中显示语法错误[重复]
  • 遇到GhostScript PDF转换问题
  • 用户获取请求后,POST表单不起作用
  • 在PHP中跨函数共享变量值
  • 如何在预编译语句中使用sql函数
  • 显示数组中复选框的名称
  • 隐藏输入单选按钮在IE10中不起作用
  • JSON响应显示为true↵,长度错误
  • 在数据表编辑器中使用数据库函数'NOW()'
  • 为for循环中的每个元素提供不同的ID
  • 调整图像功能实现页面大小
  • Sendgrid示例php发送重复的电子邮件
  • 使用私钥和PKCS1进行PHP RSA加密
  • 稍后存储大型JSON管道请求
  • 如何限制php中的文件夹内容列表[重复]
  • 获取json编码的数组会耗尽内存
  • PHP CURL调用始终显示NULL
  • AsyncTask在执行时执行崩溃应用程序
  • 使用私有X509密钥签署xml数据类型

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华