curl_multi_setopt - Returns the text string that describes the error code.
Explanation
string curl_multi_strerror ( int $errornum )
Returns a string describing text CURLM error code.
parameter
errornum
One of the constants CURLM error code.
return value
Returning to the description of the error code text string, otherwise it returns NULL.
Examples
Examples
? <Php // create a cURL handle $ ch1 = curl_init ( "https://www.runoob.com/"); $ ch2 = curl_init ( "http://php.net/"); // create a batch cURL handle $ mh = curl_multi_init (); // add to the batch handle handle curl_multi_add_handle ($ mh, $ ch1); curl_multi_add_handle ($ mh, $ ch2); // execute the batch handle do {$ status = curl_multi_exec ($ mh , $ active); // check for errors if ($ status> 0) {// an error message echo "eRROR \ n!" curl_multi_strerror ($ status);.}} while ($ status === CURLM_CALL_MULTI_PERFORM || $ active );?>