Forum Moderators: coopster
$cs = $_SERVER['REQUEST_URI'];
$currentSection = explode("/",$cs);
$currentSection = end($currentSection); $cs = $_SERVER['REQUEST_URI'];
$currentSection = explode("/",$cs);
$currentSection = $currentSection[1]; [edited by: Readie at 2:47 pm (utc) on Apr 4, 2010]
function remove_empty($array)
{
$new_array = array();
foreach ($array as $value)
{
$value = trim($value);
if($value != "")
{
$new_array[] = $value;
}
}
return $new_array;
}
$here = end(remove_empty(explode('/',$_SERVER['REQUEST_URI'])));
[edited by: Readie at 1:09 am (utc) on Apr 5, 2010]