socket_select

socket_select

(PHP 4 >= 4.1.0, PHP 5, PHP 7)

socket_selectRuns the select() system call on the given arrays of sockets with a specified timeout

Description

int socket_select ( array &$read , array &$write , array &$except , int $tv_sec [, int $tv_usec = 0 ] )

socket_select() accepts arrays of sockets and waits for them to change status. Those coming with BSD sockets background will recognize that those socket resource arrays are in fact the so-called file descriptor sets. Three independent arrays of socket resources are watched.