dose Posted January 11, 2010 Share Posted January 11, 2010 I was wondering how i would make curl goto every link in an array? Link to comment https://forums.phpfreaks.com/topic/188026-curl-array/ Share on other sites More sharing options...
oni-kun Posted January 11, 2010 Share Posted January 11, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.