stream_select
PHP 4 >= 4.3.0, PHP 5, PHP 7, PHP 8
stream_select - Runs the equivalent of the select() system call on the given
arrays of streams with a timeout specified by seconds and microseconds
Code Examples