← All built-ins / stream_ready()
stream_ready()
stream_ready(...$args): mixed
Parameters
| Name | Type | Description |
|---|---|---|
| $handles | array | socket handles to check |
Return value
Array of the handles that are ready to read (select-style).
Example
echo "used in lib/websocket.hphp for multiplexed sockets";
used in lib/websocket.hphp for multiplexed sockets
This call needs a real environment (window, server, database or stdin) — the snippet above shows the typical usage shape.