function get_vars($params, $section) { global $TMS, $_PATH; if ($TMS->potentialKeys[$section]) { $sr = array_merge($TMS->getSectionReplacements($section), array_keys($TMS->potentialKeys[$section])); $fr = array_merge($TMS->Fields[$section], $TMS->potentialKeys[$section]); } else { $sr = $TMS->getSectionReplacements($section); $fr = $TMS->Fields[$section]; } return ENHANCE::var_dump(array_combine($sr, $fr)); }