PHP mysqli: close() function
mysqli_close() function / mysqli::close
The mysqli_close() function / mysqli::close closes a previously opened database connection.
Syntax:
Object oriented style
bool mysqli::close ( void )
Procedural style
bool mysqli_close ( mysqli $link )
Usage: Procedural style
mysqli_close(connection);
Parameter:
Name | Required/Optional | Description |
---|---|---|
connectionn | Required | Specifies the MySQL connection to close |
Return value:
Returns TRUE on success or FALSE on failure.
Version: PHP 5, PHP 7
Example
See also
Previous: client_version
Next: commit
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics