title: Php Open all links inside the array
body: <p>Hi I just want to get an idea on how I can do this.</p>
  
  <p>First. I have a CSV file with links.</p>
  
  <p>Second. I made a code so that all those links are put in one array called <code>$data[]</code>.</p>
  
  <p>Third. Now I can Access all the links using the <code>$data[]</code> variable.</p>
  
  <p>Question. How can I make a for loop wherein it opens all the links one by one?</p>
  
  <p>Note. (the links i have, when opened through the browser automatically downloads an image. So I just really need to open each link in the for loop)</p>
  
  <p>I've tried putting it on <code>&lt;a href="$data[]" download&gt;download&lt;/a&gt;</code> but i have to click each button just to download the files. Any idea would be a great help thanks! :)</p>