Skip to content

CurlMultiHandler :: getError()

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

CurlMultiHandler :: getError()

//Construct the multi handler object
$mch = new CurlMultiHandler();

//Construct various handles to be handled by the multi handler object
$ch1 = new CurlHandler('this_is_not_a_valid_URL');
$ch2 = new CurlHandler('this_is_not_a_valid_URL');

//Add the handles
$mch->addHandle($ch1);
$mch->addHandle($ch2);

$mch->execute();

var_dump($mch->getError());

Parameters [0]:

No parameters

Returns:

An array of the human readable errors detailed here

Clone this wiki locally