It might be more convenient to store the set of variables as an array in the first place, save all that exploding:
$setofvariables = array('k1','k2','k3','k4','k5','k6','k7','k8','k9','egz');
if(in_array($_POST['select'], $setofvariables))
{...
}
And of course is this is the only place the array is used you may not need the extra variable:
if(in_array($_POST['select'], array('k1','k2','k3','k4','k5','k6','k7','k8','k9','egz'))
{...
}
"if in array..." sound like what you're after?