php8.5
Home/ Manual/ pgsql / functions/ pg_socket

pg_socket

PHP function Edit on GitHub ✎

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

Get a read only handle to the socket underlying a PostgreSQL connection

Description

pg_socket(PgSql\Connection $connection): resource|false

pg_socket() returns a read only resource corresponding to the socket underlying the given PostgreSQL connection.

Func

Parameters

connection

Connection

Return Values

A socket resource on successFalseforfailure.

Changelog

VersionDescription

Source: reference/pgsql/functions/pg-socket.xml · from the official PHP manual (php/doc-en)