mysqli_stmt::__construct

(PHP 5, PHP 7, PHP 8)

mysqli_stmt::__constructConstructs a new mysqli_stmt object

说明

public mysqli_stmt::__construct(mysqli $mysql, ?string $query = null)

This method constructs a new mysqli_stmt object.

参数

link

A valid mysqli object.

query

The query, as a string. If this parameter is null, then the constructor behaves identically to mysqli_stmt_init(), otherwise it behaves as per mysqli_prepare().

更新日志

版本 说明
8.0.0 query is now nullable.

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

备份地址:http://www.lvesu.com/blog/php/mysqli-stmt.construct.php