(PHP 3, PHP 4 )
int pg_port (int connection_id)
int pg_port
Pg_port() will return the port number that the given PostgreSQL connection identifier is connected to.