(PHP 4 >= 4.3.0, PHP 5, PHP 7)
Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by tv_sec and tv_usec
int stream_select ( array &$read, array &$write, array &$except, int $tv_sec [, int $tv_usec = 0 ] )
The stream_select() function accepts arrays of streams and waits for them to change status. Its operation is equivalent to that of the socket_select() fu