stream_socket_shutdown()
to Shutdown a Socket Connectionstream_socket_shutdown()
to Shutdown a Socket ConnectionThe stream_socket_shutdown()
function shuts down a socket connection for reading, writing, or both. This is useful for closing network connections cleanly.