(PHP 4 >= 4.3.0)
stream_select -- 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 ( resource &read, resource &write, resource &except, int tv_sec [, int tv_usec])
More Info