pg_host
接続に関連するホスト名を返す
&reftitle.description;
stringpg_host
PgSql\Connectionnullconnection&null;
pg_host は、指定した
connection インスタンスが接続しているホストの
名前を返します。
&reftitle.parameters;
connection
&pgsql.parameter.connection-with-nullable-default;
&reftitle.returnvalues;
connection が接続しているホストの名前を
文字列で返します。エラー時には空の文字列を返します。
&reftitle.changelog;
&Version;
&Description;
&pgsql.changelog.connection-object;
8.0.0
connection は、nullable になりました。
&reftitle.examples;
pg_host の例
\n";
} else {
print pg_last_error($pgsql_conn);
exit;
}
?>
]]>
&reftitle.seealso;
pg_connect
pg_pconnect