socket_read

socket_read -- Reads a maximum of length bytes from a socket

Description

string socket_read ( resource socket, int length [, int type])

Varování

Tato funkce je EXPERIMENTÁLNÍ . Chování této funkce , její název a všechno ostatní , 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čí .

Poznámka: socket_read() may return a zero length string ("") indicating the end of communication (i.e. the remote end point has closed the connection).