Closes a previously opened database connection
Object oriented style
public bool mysqli::close();
bool mysqli_close(mysqli mysql);
Closes a previously opened database connection.
Open non-persistent MySQL connections and result sets are automatically destroyed when a PHP script finishes its execution. So, while explicitly closing open connections and freeing result sets is optional, doing so is recommended. This will immediately return resources to PHP and MySQL, which can improve performance. For related information, see freeing resources
true on success or
false on failure.