public static function setLastSegment($segments)
    {
        if (is_array($segments)) {
            $vars = $segments;
        } else {
            $vars = self::segmentUrl($segments);
        }

        return end($vars);
    }
public static function setLastSegment($segments)
    {
        if (is_array($segments)) {
            $vars = $segments;
        } else {
            $vars = self::segmentUrl($segments);
        }

        return end($vars);
    }
public static function setLastSegment ( $ segments ) { if ( is_array ( $ segments ) ) { $ vars = $ segments ; } else { $ vars = self :: segmentUrl ( $ segments ) ; } return end ( $ vars ) ; }
Get last item segment.

@param (mixed) $segments Url segments.

@since 1.0.0

@return string
Get last item segment .