php / 8.1.5 / function.odbc-close.html /

odbc_close

(PHP 4, PHP 5, PHP 7, PHP 8)

odbc_closeClose an ODBC connection

Description

odbc_close(resource $odbc): void

Closes down the connection to the database server.

Parameters

odbc

The ODBC connection identifier, see odbc_connect() for details.

Return Values

No value is returned.

Notes

Note:

This function will fail if there are open transactions on this connection. The connection will remain open in this case.

© 1997–2021 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.odbc-close.php