PHP curl_multi_select Function
(PHP 5)
curl_multi_select — Wait for activity on any connection in the cURL multi handle
Description
int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] )
Blocks until there is activity on a connection in the cURL multi handle.
Parameters
** mh**
A cURL multi handle returned by curl_multi_init().
** timeout**
The time to wait for a response, in seconds.
Return Value
Returns the number of descriptors in the descriptor set on success. On failure, returns -1 if select fails, otherwise returns a timeout (from the underlying select system call).
PHP cURL Reference Manual