Looking to optimize a lengthy switch/case statement. Working on something like this, and considering how to optimize it and speed it up. It's not that slow yet but it might be when it's finished.
Code:
switch($var) {
case 'val1':
$action = 'step1'; break;
case 'val2':
$action = 'step2'; break;
.. and so on for about 200 more of these ..
default:
$action = 'do the hokey pokey'; break;
}