(PHP 4 >= 4.1.0, PHP 5, PHP 7)
Receives data from a connected socket
int socket_recv ( resource $socket, string &$buf, int $len, int $flags )
The socket_recv() function receives len bytes of data in buf from socket. socket_recv() can be used to gather data from connected sockets. Additionally, one or more flags can be specified to modify the behaviour of the function.
buf is passed by reference, so it must be speci