Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

socket_addrinfo_bind

Description

The socket_addrinfo_bind of Sockets for PHP create and bind to a socket from a given addrinfo.

Syntax

socket_addrinfo_bind(
    AddressInfo $address
): Socket|false

Parameters

address

AddressInfo instance created from socket_addrinfo_lookup().

Return

Returns a Socket instance on success or false on failure.

Examples

1 · address

<?

$host = '127.0.0.1';

$address = socket_addrinfo_lookup($host)[0];

$return = socket_addrinfo_bind($address);

var_export($return);

?>
\Socket::__set_state(array(
))
HomeMenu