PECL ibm_db2 >= 1.0.0
db2_close - Closes a database connection
Code Examples

db2_close( resource$connection ): bool

This function closes a DB2 client connection created with db2_connect and returns the corresponding resources to the database server.

If you attempt to close a persistent DB2 client connection created with db2_pconnect, the close request is ignored and the persistent DB2 client connection remains available for the next caller.



Specifies an active DB2 client connection.

Return Values

Returns true on success or false on failure.

Related Functions

Example of db2_close

Show all examples for db2_close

PHP Version: