socket_close

(PHP 4 >= 4.1.0)

socket_close -- Closes a socket descriptor

Description

bool socket_close ( resource socket)

Varovßnφ

Tato funkce je EXPERIMENT┴LN═. To znamenß, ╛e chovßnφ tΘto funkce a jejφ nßzev, p°esn∞ji °eΦeno COKOLI, co je zde zdokumentovßno, se v budoucφch verzφch PHP m∙╛e BEZ OHL┴⌐EN═ zm∞nit. Berte to v ·vahu a pou╛φvejte tuto funkci na vlastnφ nebezpeΦφ.

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().