pg_close

(PHP3 , PHP4 )

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().