dose Posted January 11, 2010 Share Posted January 11, 2010 I was wondering how i would make curl goto every link in an array? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/188026-curl-array/#findComment-992667 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.