I've had situations where database connections appeared to persist following php execution. So, now, my __destructor function explicitly contains a $cxn->close(). It hurts nothing, and helps avoid memory leaks.
mysqli::close -- mysqli_close — Closes a previously opened database connection
Stile orientato agli oggetti
Closes a previously opened database connection.
TRUE in caso di successo,
FALSE in caso di fallimento.