lib/ezutils/classes/ezuri.php
public function element( $index = 0, $relative = true )
    {
        $pos = $index;
        if ( $relative )
            $pos += $this->Index;
        if ( isset( $this->URIArray[$pos] ) )
            return $this->URIArray[$pos];
        $ret = null;
        return $ret;
    }
public function element( $index = 0, $relative = true )
    {
        $pos = $index;
        if ( $relative )
            $pos += $this->Index;
        if ( isset( $this->URIArray[$pos] ) )
            return $this->URIArray[$pos];
        $ret = null;
        return $ret;
    }
public function element ( $ index = 0 , $ relative = true ) { $ pos = $ index ; if ( $ relative ) $ pos += $ this -> Index ; if ( isset ( $ this -> URIArray [ $ pos ] ) ) return $ this -> URIArray [ $ pos ] ; $ ret = null ; return $ ret ; }
Get element index from uri

@param integer $index the index of URI to return
@param boolean $relative if index is relative to the internal pointer
@return string|null the element at $index
Get element index from uri