pg_port

pg_port

(PHP 4, PHP 5, PHP 7)

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.

Parameters

connection

PostgreSQL database connection resource. When connection is not present, the d