Home > PHP > Function > OCI8 > oci_close()

oci_close()

oci_close - Closes an Oracle connection

Syntax

bool oci_close (resource $connection)

Arguments

  • connection - An Oracle connection identifier returned by oci_connect(), oci_pconnect(), or oci_new_connect().

Description

Unsets connection. The underlying database connection is closed if no other resources are using it and if it was created with oci_connect() or oci_new_connect().

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.