So we can assume the keys are all unique?
Something like this
$_SESSION['S_EXTRA_IDS'] = Array();
for($i=0; $i< count($extrachoice); $i++)
{
foreach($extrachoice[0] as $key => $value)
{
$_SESSION['S_EXTRA_IDS'][$key] = $value;
}
}
Okay, main thing to note is I've assigned the value for that key. Your request above wants to create $_SESSION['S_EXTRA_IDS'][$key][$value] so if you're doing that you'd need it to say
$_SESSION['S_EXTRA_IDS'][$key][$value] = 'dummy value';
or something.