foreach ($postConfig as $key => $value){ if(isset($_REQUEST[$value])){ $postConfig[$key] = fnCleanInputVar($_REQUEST[$value]); } }