SOCKET_CLOSE(3) 1 SOCKET_CLOSE(3)
socket_close - Closes a socket resource
SYNOPSIS
void socket_close (resource $socket)
DESCRIPTION
socket_close(3) closes the socket resource given by $socket. This function is specific to sockets and cannot be used on any other type of
resources.
PARAMETERS
o $socket
- A valid socket resource created with socket_create(3) or socket_accept(3).
RETURN VALUES
No value is returned.
SEE ALSO
socket_bind(3), socket_listen(3), socket_create(3), socket_strerror(3).
PHP Documentation Group SOCKET_CLOSE(3)