← All built-ins / stream_ready()

stream_ready()

stream_ready(...$args): mixed

Parameters

NameTypeDescription
$handlesarraysocket 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.

See also

stream_recv()stream_socket_server()