Availability in PHP 5.0
Receives data from a socket, connected or not
| 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. |
string
the read data, as a string
Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.
Rád vám pomůžu:
Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.