(PHP 5, PHP 7, PHP 8)
代表 PHP 与 MySQL 数据库之间的连接。
$hostname
= null
,$username
= null
,$password
= null
,$database
= null
,$port
= null
,$socket
= null
$username
, #[\SensitiveParameter] string $password
, ?string $database
): bool$hostname
= null
,$username
= null
,$password
= null
,$database
= null
,$port
= null
,$socket
= null
&$read
,&$error
,&$reject
,$seconds
,$microseconds
= 0$hostname
= null
,$username
= null
,$password
= null
,$database
= null
,$port
= null
,$socket
= null
,$flags
= 0