src/Common/Internal/ConnectionStringParser.php
private function _extractValue()
    {
        $value = Resources::EMPTY_STRING;

        if ($this->_pos < strlen($this->_value)) {
            $ch = $this->_value[$this->_pos];

            if ($ch == '"' || $ch == '\'') {
                // Value is contained between double quotes or skipped single quotes.
                ++$this->_pos;
                $value = $this->_extractString($ch);
            } else {
                $firstPos = $this->_pos;
                $isFound = false;

                while ($this->_pos < strlen($this->_value) && !$isFound) {
                    $ch = $this->_value[$this->_pos];

                    if ($ch == ';') {
                        $isFound = true;
                    } else {
                        ++$this->_pos;
                    }
                }

                $value = rtrim(
                    substr($this->_value, $firstPos, $this->_pos - $firstPos)
                );
            }
        }

        return $value;
    }
private function _extractValue()
    {
        $value = Resources::EMPTY_STRING;

        if ($this->_pos < strlen($this->_value)) {
            $ch = $this->_value[$this->_pos];

            if ($ch == '"' || $ch == '\'') {
                // Value is contained between double quotes or skipped single quotes.
                ++$this->_pos;
                $value = $this->_extractString($ch);
            } else {
                $firstPos = $this->_pos;
                $isFound = false;

                while ($this->_pos < strlen($this->_value) && !$isFound) {
                    $ch = $this->_value[$this->_pos];

                    if ($ch == ';') {
                        $isFound = true;
                    } else {
                        ++$this->_pos;
                    }
                }

                $value = rtrim(
                    substr($this->_value, $firstPos, $this->_pos - $firstPos)
                );
            }
        }

        return $value;
    }
private function _extractValue ( ) { $ value = Resources :: EMPTY_STRING ; if ( $ this -> _pos < strlen ( $ this -> _value ) ) { $ ch = $ this -> _value [ $ this -> _pos ] ; if ( $ ch == '"' || $ ch == '\'' ) { // Value is contained between double quotes or skipped single quotes. ++ $ this -> _pos ; $ value = $ this -> _extractString ( $ ch ) ; } else { $ firstPos = $ this -> _pos ; $ isFound = false ; while ( $ this -> _pos < strlen ( $ this -> _value ) && ! $ isFound ) { $ ch = $ this -> _value [ $ this -> _pos ] ; if ( $ ch == ';' ) { $ isFound = true ; } else { ++ $ this -> _pos ; } } $ value = rtrim ( substr ( $ this -> _value , $ firstPos , $ this -> _pos - $ firstPos ) ) ; } } return $ value ; }
Extracts the key's value.

@return string
Extracts the key s value .