Push array while defining the key
<p>I have an array that looks like this:</p>

<pre><code>$daysArray = array(2=&gt;array('#linkhere','linked-day'));
</code></pre>

<p>I need to push another array into here but define the key.</p>

<p>I have tried:</p>

<pre><code>$value= $key.'=&gt;array("#$event","linked-day")';
//$value= 2=&gt;array('/weblog/archive/2004/Jan/02','linked-day')
array_push($daysArray, $value);
</code></pre>
