title: Printing looped user input from an array PHP
body: <p>I'm making a small program that saves user input into an array an then prints the array, But I only get the last input printed each time. I'm using readline and php.eol because it has to work in the cmd.</p>
  <pre><code>&lt;?php
  
  echo &quot;Hoeveel activiteiten wil je toevoegen?&quot; . PHP_EOL;
  $hoeveel = readline();
  if (is_numeric($hoeveel)) {
      for ($i = 1; $i &lt;= $hoeveel; $i++) {
          echo &quot;Wat wil je toevoegen aan je bucketlist?&quot; . PHP_EOL;
          $entry *= $i;
          $entry = readline() . PHP_EOL;
          $bucketlist = array($entry, $entry, $entry);
      }
      echo &quot;In jouw bucketlist staat: &quot; . PHP_EOL;
      foreach ($bucketlist as $key) {
          echo $value;
      }
  } else {
      exit($hoeveel . ' is geen getal, probeer het opnieuw');
  }
  ?&gt;
  </code></pre>
  <p>I've tried in it an associative array but it seems it should be possible in a normal array.</p>