(PHP 5)
curl_multi_select — wait for active connections in all cURL batches
int curl_multi_select ( resource $mh [, float $timeout = 1.0 ] )
Blocks until there are active connections in the cURL batch connection.
mh
cURL multiple handles returned by curl_multi_init().
timeout
The time, in seconds, to wait for a response.
Returns the number of descriptors in the descriptor set on success. On failure, -1 is returned if the select fails, otherwise a timeout is returned (called from the underlying select system).