PHP function stream_socket_recvfrom()
Availability in PHP 5.0
Receives data from a socket, connected or not
Parameters
| Parameter | Data type | Default value | Note | ||||
|---|---|---|---|---|---|---|---|
$socket |
resource |
not | The remote socket. | ||||
$length |
int |
not | The number of bytes to receive from the socket. | ||||
$flags |
int |
null, | The value of flags can be any combination of the following:
|
||||
$address |
string |
null | If address is provided it will be populated with the address of the remote socket. |
Return values
string
the read data, as a string