private function getDelimiterRightPosition($string, $offset = 0, $delimiter = ';', $skipInBrackets = false)
    {
        $pos = $this->getDelimiterPos($string, $offset, $delimiter, $skipInBrackets);
        if ($pos === false) {
            return false;
        }

        do {
            $newPos = $this->getDelimiterPos($string, $pos + 1, $delimiter, $skipInBrackets);
            if ($newPos !== false) {
                $pos = $newPos;
            }
        } while ($newPos !== false);

        return $pos;
    }
private function getDelimiterRightPosition($string, $offset = 0, $delimiter = ';', $skipInBrackets = false)
    {
        $pos = $this->getDelimiterPos($string, $offset, $delimiter, $skipInBrackets);
        if ($pos === false) {
            return false;
        }

        do {
            $newPos = $this->getDelimiterPos($string, $pos + 1, $delimiter, $skipInBrackets);
            if ($newPos !== false) {
                $pos = $newPos;
            }
        } while ($newPos !== false);

        return $pos;
    }
private function getDelimiterRightPosition ( $ string , $ offset = 0 , $ delimiter = ';' , $ skipInBrackets = false ) { $ pos = $ this -> getDelimiterPos ( $ string , $ offset , $ delimiter , $ skipInBrackets ) ; if ( $ pos === false ) { return false ; } do { $ newPos = $ this -> getDelimiterPos ( $ string , $ pos + 1 , $ delimiter , $ skipInBrackets ) ; if ( $ newPos !== false ) { $ pos = $ newPos ; } } while ( $ newPos !== false ) ; return $ pos ; }
works the same as getDelimiterPos except returns position of the first occurrence of the delimiter starting from
the end of the string
@param string $string
@param int $offset
@param string $delimiter
@param bool $skipInBrackets
@return bool
works the same as getDelimiterPos except returns position of the first occurrence of the delimiter starting from the end of the string