Jump to content

curl array


dose

Recommended Posts

You'd use a foreach loop. Here's a rough example:

$array = array('http://1.com' , 'http://2.com' , 'http://3.com');

foreach ($array as $arr) { 
    //Curl code for $arr  
    echo $arr;
}

 

Notice it lists the array each loop, so you can easily get CURL to execute 3 times.

Link to comment
https://forums.phpfreaks.com/topic/188026-curl-array/#findComment-992667
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.