You are here : phpmysqlimysqli_close

mysqli_close() - mysqli

The mysqli_close() function closes a previously opened database connection.


Syntax

mysqli_close(connection);


Example

<?php
$con=mysqli_connect("localhost","my_user","my_password","my_db");

// ....some PHP code...

mysqli_close($con);
?> 


Output / Return Value


Limitations


Alternatives / See Also


Reference