| 
 | oci_closeCloses an Oracle connection Description
   bool oci_close
    ( resource  $connection)
   Unsets  It is recommended to close connections that are no longer needed because this makes database resources available for other users. Parameters
 
 Return Values
   Returns  ExamplesExample #1 Closing a connection Resources associated with a connection should be closed to ensure the underlying database connection is properly terminated and the database resources are released. 
<?phpExample #2 Database connections are not closed until all references are closed The internal refcount of a connection identifier must be zero before the underlying connection to the database is closed. 
<?phpExample #3 Closing a connection opened more than once When database credentials are reused, both connections must be closed before the underlying database connection is closed. 
<?phpExample #4 Connections are closed when variables go out of scope When all variables referencing a connection go out of scope and are freed by PHP, a rollback occurs (if necessary) and the underlying connection to the database is closed. 
<?phpNotes
 
 
 See Also
 
 |