title: Store images in array PHP
body: <p>I'm really new at php just doing some work, I want to save images in a php array and then show them in the screen, but I cannot save them or display them.</p>
  
  <pre><code>&lt;?php 
  $min = 1;
  $max = 9;
  $number1 = rand($min,$max);
  
  for ($i=1 ; $i&lt;=$number1 ; $i++){
  
  $firstN [$i] = echo "&lt;img src='index.jpg' border='0'&gt;";
  }   
  
  
  echo $firstN [1];
  ?&gt;
  </code></pre>
  
  <p>This is what I got , and the last line is to test it but nothing works, I google the topic but it doesn't help.
  Thanks in advance.</p>