curl_multi_strerror

(PHP 5 >= 5.5.0, PHP 7)

curl_multi_strerror锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟侥达拷锟斤拷锟斤拷锟�

说锟斤拷

curl_multi_strerror ( int $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);
?>

锟轿硷拷