title: How to array_push in an associative array
body: <p>I have now an array like this:</p>
  
  <pre><code>      $this-&gt;array[$i] = array(
                    'Date' =&gt; $date-&gt;format('d/m/Y'),
                    'Capital' =&gt; $capital,
                    'Rate' =&gt; $rate,
                    'Interest' =&gt; $interest,
                    'Payment' =&gt; $payment,
                    'Amortization' =&gt; $amortization,
                    'Remaining' =&gt; $remaining,
                    'InterestTotal' =&gt; $interestTotal,
                    'AmortizationTotal' =&gt; $amortizationTotal,
                    'PaymentTotal' =&gt; $paymentTotal,
                    'InverseCapital' =&gt; $inverseCapital,
                );
  </code></pre>
  
  <p>So... in this cicle, for $i = 0 ... $i &lt; 360 ...
  it pushes this values in an array.</p>
  
  <p>I want to make this part of code independent from [$i]. I want it to be smth like : </p>
  
  <pre><code>array_push(($this-&gt;array),
                    'Date' =&gt; $date-&gt;format('d/m/Y'),
                    'Capital' =&gt; $capital,
                    'Rate' =&gt; $rate,
                    'Interest' =&gt; $interest,
                    'Payment' =&gt; $payment,
                    'Amortization' =&gt; $amortization,
                    'Remaining' =&gt; $remaining,
                    'InterestTotal' =&gt; $interestTotal,
                    'AmortizationTotal' =&gt; $amortizationTotal,
                    'PaymentTotal' =&gt; $paymentTotal,
                    'InverseCapital' =&gt; $inverseCapital,
  );
  </code></pre>