close

(4.0.2 - 4.0.6 only)

close -- Closes a file descriptor

Description

bool close (resource socket)

Attenzione

Questa funzione è SPERIMENTALE. Ovvero, il comportamento di questa funzione, il nome di questa funzione, in definitiva TUTTO ciò che è documentato qui può cambiare nei futuri rilasci del PHP SENZA PREAVVISO. Siete avvisati, l'uso di questo modulo è a vostro rischio.

close() closes the file (or socket) descriptor given by socket.

Note that close() should not be used on PHP file descriptors created with fopen(), popen(), fsockopen(), or psockopen(); it is meant for sockets created with socket() or accept_connect().

Returns TRUE on success, or FALSE if an error occurs (i.e., socket is invalid).

See also bind(), listen(), socket(), socket_get_status(), and strerror().