$value) { $item[] = strtolower($key).'='.$value; if ('option' != $key AND 'Itemid' != $key) unset ($query[$key]); } $sefstring = isset($item) ? sef_glossary::create(implode('&', $item), _GLOSSARY_SEF_LOWER_CASE) : ''; return $sefstring ? explode('/', $sefstring) : array(); } // This is passed an associative array of SEF'd values, // and must return an array of query string values function glossaryParseRoute ($segments) { $replacements = 1; foreach ($segments as $key=>$segment) $segments[$key] = str_replace(':', '-', $segment, $replacements); return explode('&', substr(sef_glossary::revert($segments, -2), 1)); }