how to use array_push when pushing both key and value in PHP
<p>I have an empty array. I am able to push values using </p>

<pre><code>array_push($list, item[0]);
</code></pre>

<p>But how do I push both key and value.</p>

<pre><code>array_push($list[$key], $item[0])
</code></pre>

<p>this does not work.</p>
