Skip to content

CurlMultiHandler :: addHandle(handle)

Brian Boll edited this page Apr 23, 2018 · 4 revisions

CurlMultiHandler :: addHandle(handle)

$mch = new CurlMultiHandler();
$ch = new CurlHandler('http://example.com');

$mch->addHandle($ch);

$mch->execute();

$mch->close();

Parameters [1]:

[1] handle: A CurlHandler object to be added to the multi handler

Returns:

The numerical constant CURLM_OK (0) will be returned if successful. A number corresponding to an error will be returned otherwise. Those errors are detailed here

Clone this wiki locally