(PHP 5 >= 5.5.0, PHP 7)
curl_multi_strerror — 锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟侥达拷锟斤拷锟斤拷锟�
$errornum
) : string锟斤拷锟斤拷一锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷 CURLM 锟斤拷锟斤拷锟斤拷锟斤拷锟斤拷锟接︼拷拇锟斤拷锟斤拷锟较拷锟�
errornum
» CURLM 锟斤拷锟斤拷锟斤拷锟�锟叫的筹拷锟斤拷之一锟斤拷
锟斤拷锟截匡拷锟矫达拷锟斤拷锟斤拷锟斤拷锟斤拷锟接︼拷拇锟斤拷锟斤拷锟较拷锟斤拷锟斤拷蚍祷锟� NULL
锟斤拷
Example #1 curl_multi_strerror() 锟斤拷锟斤拷锟侥凤拷锟斤拷锟斤拷
<?php
// Create cURL handles
$ch1 = curl_init("http://example.com"/);
$ch2 = curl_init("http://php.net/");
// Create a cURL multi handle
$mh = curl_multi_init();
// Add the handles to the multi handle
curl_multi_add_handle($mh, $ch1);
curl_multi_add_handle($mh, $ch2);
// Execute the multi handle
do {
$status = curl_multi_exec($mh, $active);
// Check for errors
if($status > 0) {
// Display error message
echo "ERROR!\n " . curl_multi_strerror($status);
}
} while ($status === CURLM_CALL_MULTI_PERFORM || $active);
?>