pg_dbname
pg_dbname
Get the database name
string **pg_dbname** $connection
returns the name of the database
that the given PostgreSQL instance.
pg_dbname``connection
connection
A containing the name of the database the
is to.
string``connection
Voorbeeld: example
<?php
error_reporting(E_ALL);
pg_connect("host=localhost port=5432 dbname=mary");
echo pg_dbname(); // mary
?>