title: Adding values into array in while loop overriding old values
body: <p>This is my code:</p>
  
  <pre><code>if ( 0 &lt; $matches-&gt;total() ) {
      while ( $matches-&gt;fetch() ) {
          ?&gt;
              &lt;?php $ma1_winner      = $matches-&gt;display( 'winner' ); ?&gt;
              &lt;?php $ma1_team_1      = $matches-&gt;display( 'team_1' ); ?&gt; 
              &lt;?php $matches_array_1['winner'] = $ma1_winner; ?&gt;
                  &lt;?php $matches_array_1['team1'] = $ma1_team_1; ?&gt;
              &lt;?php
                      } // end of while loop
              } // end of if any exists
              ?&gt;
  
  
              &lt;?php var_dump($matches_array_1); ?&gt;
              &lt;?php die(); ?&gt;
  </code></pre>
  
  <p>But it outputs in var_dump only one winner and team not 15 from my database. How to fix it?</p>