pg_dbname

 string pg_dbname ([ resource $connection ] ) 

説明

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

戻り値

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