public function segment($segment)
    {
        $segments = $this->segments;

        return isset($segments[$segment - 1]) ? $segments[$segment - 1] : false;
    }
public function segment($segment)
    {
        $segments = $this->segments;

        return isset($segments[$segment - 1]) ? $segments[$segment - 1] : false;
    }
public function segment ( $ segment ) { $ segments = $ this -> segments ; return isset ( $ segments [ $ segment - 1 ] ) ? $ segments [ $ segment - 1 ] : false ; }
get url segment

@param int $segment
@return string|bool
get url segment