public function getDirectoryPosition($position)
    {
        if ($position === count($this->info['path'])) {
            return urldecode($this->info['file']);
        }

        return isset($this->info['path'][$position]) ? urldecode($this->info['path'][$position]) : null;
    }
public function getDirectoryPosition($position)
    {
        if ($position === count($this->info['path'])) {
            return urldecode($this->info['file']);
        }

        return isset($this->info['path'][$position]) ? urldecode($this->info['path'][$position]) : null;
    }
public function getDirectoryPosition ( $ position ) { if ( $ position === count ( $ this -> info [ 'path' ] ) ) { return urldecode ( $ this -> info [ 'file' ] ) ; } return isset ( $ this -> info [ 'path' ] [ $ position ] ) ? urldecode ( $ this -> info [ 'path' ] [ $ position ] ) : null ; }
Return a specific directory position in the path of the url.

@param int $position The position of the directory (0 based index)

@return string|null
Return a specific directory position in the path of the url .