I have an array that looks like this:
$daysArray = array(2=>array('#linkhere','linked-day'));
I need to push another array into here but define the key.
I have tried:
$value= $key.'=>array("#$event","linked-day")';
//$value= 2=>array('/weblog/archive/2004/Jan/02','linked-day')
array_push($daysArray, $value);
If you want to append another array onto your primary array you can use:
Doc: http://us.php.net/array_push
From the Docs: