pg_dbname

Example

 string pg_dbname ([ resource $connection ] ) 

Description

pg_dbname() returns the name of the database that the given PostgreSQL connection resource.

Return Values

A string containing the name of the database the connection is to, or FALSE on error.