socket_close(Socket $socket): void
socket_close() closes the Socket instance given by socket.
socketA Socket instance created with socket_create() or socket_accept().
No value is returned.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.socket-close.php