pg_port

(PHP 3 <= 3.0.18, PHP 4 >= 4.0.0)

pg_port --  Return the port number associated with the connection

Description

int pg_port (resource connection)

pg_port() returns the port number that the given PostgreSQL connection resource is connected to.