pg_options
PHP function
Edit on GitHub ✎
(PHP 4, PHP 5, PHP 7, PHP 8)
Get the options associated with the connection
Description
pg_options(PgSql\Connection|null $connection = null): string
pg_options() will return a string containing the options specified on the given PostgreSQL connection instance.
Parameters
connectionConnection-with-nullable-default
Return Values
A string containing the connection options.
Changelog
| Version | Description |
|---|---|
| 8.0.0 | connection is now nullable. |
Examples
pg_options() example
php
<?php
$pgsql_conn = pg_connect("dbname=mark host=localhost");
echo pg_options($pgsql_conn);
?>