lib/ezutils/classes/ezuri.php
public function base( $as_text = true )
    {
        $elements = array_slice( $this->URIArray, 0, $this->Index );
        if ( $as_text )
        {
            $baseAsText = '/' . implode( '/', $elements );
            return $baseAsText;
        }
        else
            return $elements;
    }
public function base( $as_text = true )
    {
        $elements = array_slice( $this->URIArray, 0, $this->Index );
        if ( $as_text )
        {
            $baseAsText = '/' . implode( '/', $elements );
            return $baseAsText;
        }
        else
            return $elements;
    }
public function base ( $ as_text = true ) { $ elements = array_slice ( $ this -> URIArray , 0 , $ this -> Index ) ; if ( $ as_text ) { $ baseAsText = '/' . implode ( '/' , $ elements ) ; return $ baseAsText ; } else return $ elements ; }
Return the elements before pointer

@param type $as_text return as text or array
@return string|array the base string or the base elements as an array if $as_text is true.
Return the elements before pointer