socket_read

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

Description

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

Atenção

Esta função é EXPERIMENTAL . Isso quer dizer que o comportamento desta função e seu nome , incluindo TUDO o que está documentado aqui pode mudar em futuras versões do PHP , SEM QUALQUER NOTIFICAÇÃO . Esteja avisado , e use esta função por sua própria conta e risco .

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