Ok, so I use curl_multi_ * to connect to different sites at the same time. How to return HTTP status code to a variable for comparison?
You need to pass the curl_getinfo request id , and you will get an array containing the http_code key.