PDF (US Ltr)
- 5.3Mb
PDF (A4)
- 5.3Mb
Copyright 1997-2022 the PHP Documentation Group.
mysqli_stmt::__construct
Constructs a new
mysqli_stmt
object
Description
public mysqli_stmt::__construct(mysqli mysql,
string|null query= =null);
This method constructs a new mysqli_stmt
object.
Parameters
-
link
A valid
mysqli
object.-
query
The query, as a string. If this parameter is
null
, then the constructor behaves identically tomysqli_stmt_init
, otherwise it behaves as permysqli_prepare
.
Changelog
Version | Description |
---|---|
8.0.0 | query is now nullable. |
See Also
mysqli_prepare
|
mysqli_stmt_init
|