title: php, fill array and read its items using a loop
body: <p>I am beginner to PHP array. Please give  example where I fill array by assigning separate values. After filling the array, I want to read its items using a loop.</p>
  
  <p>Filling simply like following:</p>
  
  <pre><code>$WrongQ[1] = "1";
  $WrongQ[2] = "2";
  </code></pre>
  
  <p>Reading simply like following ( something like in C language)</p>
  
  <pre><code>$i=1;
          while($WrongQ)
          {
              echo $WrongQ[$i].",";
  
              $i=$i+1;
          }
  </code></pre>
  
  <p>I got lost when I started reading about PHP array. Please make things easy for me.
  Thanks </p>