bool stream_socket_shutdown ( resource $stream , int $how )
Shutdowns (partially or not) a full-duplex connection.
Returns TRUE on success or FALSE on failure.