title: While Loop Store In Array php
body: <p>I am extremely new at php and I was wondering if someone could help me</p>
  
  <p>Hi folks
  i want to store while loop in array how it is possible?</p>
  
  <p>e.g
  Code (text):</p>
  
  <pre><code>&lt;?php
  $i=1;
  while($i&lt;=5)
    {
    echo $i . "&lt;br&gt;";
    $i++;
    }
  ?&gt;
  </code></pre>
  
  <p>my requirements
  $store_array=[1,2,3,4,5]; </p>