mysqli close - 语法
bool mysqli_close ([ resource $link_identifier=NULL ] )
用于关闭MySQL连接。
| Sr. No | 参数 |
|---|---|
| 1 |
link_identifier 它指定在php中使用的连接数。 |
mysqli close - 返回值
成功时返回TRUE,失败时返回FALSE
mysqli close - 示例
<?php $connection=mysqli_connect("learnfk.com","use",pass","my_db");if (mysqli_connect_errno($connection)){ echo "Failed to connect to MySQL: " . mysqli_connect_error(); }
mysqli_close($connection); ?>