Ah, now I see why you want to empty the vars.
Are you sure you want ti unset them and not just empty them?
Anyway, here's a simple routine that should do the job:
$aVars = 'this|that|foo|bar';
$aArray = explode('|', $aVars);
for ($t=0;$t<count($aArray);$t++)
{
unset(${'temp_'.$aArray[$t]});
};