略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: mysqli_stmt::__construct

2024-12-20

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.

官方地址:https://www.php.net/manual/en/mysqli-stmt.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3