pg_socket

(PHP 5 >= 5.6.0, PHP 7)

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

说锟斤拷

pg_socket ( resource $connection ) : resource

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

Warning

锟斤拷锟斤拷锟斤拷锟斤拷未锟斤拷写锟侥碉拷锟斤拷锟斤拷锟叫诧拷锟斤拷锟叫憋拷

锟斤拷锟斤拷

connection

PostgreSQL database connection resource.

锟斤拷锟斤拷值

A socket resource on success 锟斤拷锟斤拷锟斤拷失锟斤拷时锟斤拷锟斤拷 FALSE.