| ||||||||||
socket_closeDescriptionbool socket_close ( resource socket)
socket_close() closes the file (or socket) descriptor given by socket. Note that socket_close() should not be used on PHP file descriptors created with fopen(), popen(), fsockopen(), or psockopen(); it is meant for sockets created with socket_create() or socket_accept(). Returns TRUE on success, or FALSE if an error occurs (i.e., socket is invalid). See also socket_bind(), socket_listen(), socket_create(), and socket_strerror(). | ||||||||||
|