3.9.8 mysqli::close, mysqli_close

Copyright 1997-2014 the PHP Documentation Group.

Description

Object oriented style

bool mysqli::close();

Procedural style

bool mysqli_close(mysqli link);

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.

Examples

See mysqli_connect.

See Also

mysqli::__construct
mysqli_init
mysqli_real_connect