pg_port

(PHP 3, PHP 4 >= 4.0.0)

pg_port -- ポート番号を返す

説明

int pg_port (int connection_id)

pg_port()は、指定したPostgreSQL接続IDが接続し ているポートの番号を返します。