mysqli 类
(PHP 5, PHP 7, PHP 8)
简介
代表 PHP 与 MySQL 数据库之间的连接。
类摘要
class mysqli
{
public
readonly
string
$error;
public
readonly
?string
$info;
public __construct(
?string $hostname = null,
?string $username = null,
?string $password = null,
?string $database = null,
?int $port = null,
?string $socket = null)
public change_user(
string $username,
string $password,
?string $database):
bool
public commit(
int $flags = 0,
?string $name = null):
bool
public connect(
?string $hostname = null,
?string $username = null,
?string $password = null,
?string $database = null,
?int $port = null,
?string $socket = null):
bool
public debug(
string $options):
true
public kill(
int $process_id):
bool
public options(
int $option,
string|int $value):
bool
public static poll(
?array &$read,
?array &$error,
array &$reject,
int $seconds,
int $microseconds = 0):
int|false
public real_connect(
?string $hostname = null,
?string $username = null,
?string $password = null,
?string $database = null,
?int $port = null,
?string $socket = null,
int $flags = 0):
bool
public rollback(
int $flags = 0,
?string $name = null):
bool
public ssl_set(
?string $key,
?string $certificate,
?string $ca_certificate,
?string $ca_path,
?string $cipher_algos):
true
public stat():
string|false
}
目录
There are no user contributed notes for this page.