Actually, I just realised that my data will now have to have an additional layer, which will make it much easier to code and follow if I use an array like:
$optionvalue = array(
'option1' => array(array(1,'c','d')),
'option2' => array(array(-1,'c','d')),
....
'option20' =>array(array(1,'v','x')));
This fits nicely into 20 lines of code now. If I used a switch it would have been huge.
Thanks.