pg_host Returns the host name associated with the connection &reftitle.description; stringpg_host resourceconnection pg_host returns the host name of the given PostgreSQL connection resource is connected to. &reftitle.parameters; 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 or pg_pconnect. &reftitle.returnvalues; A string containing the name of the host the connection is to, or &false; on error. &reftitle.examples; <function>pg_host</function> example \n"; } else { print pg_last_error($pgsql_conn); exit; } ?> ]]> &reftitle.seealso; pg_connect pg_pconnect