mysqli
PHP Manual

mysqli_close

mysqli->close()

(PHP 5)

mysqli->close() — Closes a previously opened database connection

Description

Procedural style:

bool mysqli_close ( mysqli $link )

Object oriented style (method):

mysqli
bool close ( void )

Closes a previously opened database connection.

Parameters

link

Procedural style only: A link identifier returned by mysqli_connect() or mysqli_init()

Return Values

Returns TRUE on success or FALSE on failure.

See Also


mysqli
PHP Manual