socket_read

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

Description

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

Varoitus

Varoitus ! Tämä funktio on EKSPERIMENTAALINEN . Tämän funktion ominaisuudet , käyttäytyminen , parametrit ja nimi voi muuttua varoituksetta seuraavissa PHP versioissa .

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