protected function parseVersionResponse(array $lines)
    {
        // Extract meta data
        $metaData = explode(self::COMMAND_SEPARATOR, $lines[0]);

        // If Version response valid
        if ($metaData[0] === strtoupper(self::COMMAND_VERSION)) {
            $result = $metaData[1];

        } else {
            $result = $this->setLastResponse(self::MEMCACHED_FAILURE);
        }

        return $result;
    }
protected function parseVersionResponse(array $lines)
    {
        // Extract meta data
        $metaData = explode(self::COMMAND_SEPARATOR, $lines[0]);

        // If Version response valid
        if ($metaData[0] === strtoupper(self::COMMAND_VERSION)) {
            $result = $metaData[1];

        } else {
            $result = $this->setLastResponse(self::MEMCACHED_FAILURE);
        }

        return $result;
    }
protected function parseVersionResponse ( array $ lines ) { // Extract meta data $ metaData = explode ( self :: COMMAND_SEPARATOR , $ lines [ 0 ] ) ; // If Version response valid if ( $ metaData [ 0 ] === strtoupper ( self :: COMMAND_VERSION ) ) { $ result = $ metaData [ 1 ] ; } else { $ result = $ this -> setLastResponse ( self :: MEMCACHED_FAILURE ) ; } return $ result ; }
Parser for response of version request.

SUCCESS = RESPONSE = "\r\n"
FAILED  = RESPONSE = "???"

@param array  $lines  Response split into single lines

@author Benjamin Carl <opensource@clickalicious.de>
@return string|bool The version as string if valid, otherwise FALSE
@access protected
Parser for response of version request .