Supported Versions: PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
Runs the equivalent of the select() system call on the given arrays of streams with a timeout specified by seconds and microseconds
stream_select(    ?array &$read,    ?array &$write,    ?array &$except,    ?int $seconds,    ?int $microseconds null): int|false
        while (true) {

            
$read $sockets;

            
stream_select($read$write$writenull);



            foreach (
$read as $stream) {

                if (
$this->socket === $stream) {