PHP function stream_socket_get_name()

Availability in PHP 5.0

Retrieve the name of the local or remote sockets

Parameters

Parameter Data type Default value Note
$handle resource not The socket to get the name of.
$want_peer bool not If set to true the remote socket name will be returned, if set to false the local socket name will be returned.

Return values

string

The name of the socket.

Other resources

Official documentation for stream-socket-get-name

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.