How to use array_push to multidimensional arrays?
<p>I was wondering how to use array_push to multidimensional arrays?
I have a  multidimensional array, in which i'm trying to push more values from another array. The multidimensional you can see below.</p>

<pre><code>$userList[] = array(
                        "aid" =&gt; $searchrow['aid'], 
                        "name" =&gt; $searchrow['name'],
                        "info" =&gt; $searchrow['info'],
                        "rental" =&gt; $searchrow['rental'],
                        "rentalfirm" =&gt; $searchrow['rental_firm'],
                        "acqprice" =&gt; $searchrow['acq_price'],
                        "renprice" =&gt; $searchrow['ren_price'],
                        "serial" =&gt; $searchrow['serial']); 

                        }
</code></pre>

<p>Second set of arrays:</p>

<pre><code>mysql query... blaa blaa

    $assetInuseID[]=$searchrowinuse['asset_usage_id'];
        $inuse[]=$searchrowinuse['in_use'];
        $total[]=$searchrowinuse['total'];
</code></pre>

<p>What I'm tryin to accomplice is something like below.</p>

<pre><code>$i = 0;

while(!empty($userList[$i][aid]))
{

   if($userList[$i][aid] == $assetInuseID[$i])
   {
   array_push($userList[$i][inUse], "$inuse[$i]");
   array_push($userList[$i][total], "$total[$i]");
   }
  $i ++;

}
</code></pre>

<p>So, I want to create: inUse- and total-cells in the allready existing $userList[][] and populate them with with the allready existing values of $total[$i] and $inuse[$i] when the $userList[$i][aid] matches $assetInuseID[$i].</p>

<p>I hope someone understands me, my explanation was a little bit confusing...</p>

<p>Thank you very much.</p>
