PG_OPTIONS(3) PG_OPTIONS(3)
pg_options - Get the options associated with the connection
SYNOPSIS
string pg_options ([resource $connection])
DESCRIPTION
pg_options(3) will return a string containing the options specified on the given PostgreSQL $connection resource.
PARAMETERS
o $connection
- PostgreSQL database connection resource. When $connection is not present, the default connection is used. The default connection
is the last connection made by pg_connect(3) or pg_pconnect(3).
RETURN VALUES
A string containing the $connection options, or FALSE on error.
EXAMPLES
Example #1
pg_options(3) example
<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
echo pg_options($pgsql_conn);
?>
SEE ALSO
pg_connect(3).
PHP Documentation Group PG_OPTIONS(3)