pg_close

(PHP 3, PHP 4 >= 4.0b1)

pg_close -- Close a PostgreSQL connection

Description

bool pg_close (int connection)

Returns FALSE if connection is not a valid connection index, TRUE otherwise. Closes down the connection to a PostgreSQL database associated with the given connection index.

Note: This isn't usually necessary, as non-persistent open links are automatically closed at the end of the script's execution.

pg_close() will not close persistent links generated by pg_pconnect().