library/Rediska/Command/Info.php
public function parseResponses($responses)
    {
        $info = array();
        $count = 0;
        foreach($this->_connections as $connection) {
            $info[$connection] = array();
            
            foreach (explode(Rediska::EOL, $responses[$count]) as $param) {
                if (!$param || !strpos($param, ':') !== false) {
                    continue;
                }
                list($name, $stringValue) = explode(':', $param, 2);

                if (strpos($stringValue, '.') !== false) {
                    $value = (float)$stringValue;
                } else {
                    $value = (integer)$stringValue;
                }

                if ((string)$value != $stringValue) {
                    $value = $stringValue;
                }

                $info[$connection][$name] = $value;
            }
            $info[$connection] = new Rediska_Info($info[$connection]);
            $count++;
        }
        if (count($info) == 1) {
            $info = array_shift($info);
        }

        return $info;
    }
public function parseResponses($responses)
    {
        $info = array();
        $count = 0;
        foreach($this->_connections as $connection) {
            $info[$connection] = array();
            
            foreach (explode(Rediska::EOL, $responses[$count]) as $param) {
                if (!$param || !strpos($param, ':') !== false) {
                    continue;
                }
                list($name, $stringValue) = explode(':', $param, 2);

                if (strpos($stringValue, '.') !== false) {
                    $value = (float)$stringValue;
                } else {
                    $value = (integer)$stringValue;
                }

                if ((string)$value != $stringValue) {
                    $value = $stringValue;
                }

                $info[$connection][$name] = $value;
            }
            $info[$connection] = new Rediska_Info($info[$connection]);
            $count++;
        }
        if (count($info) == 1) {
            $info = array_shift($info);
        }

        return $info;
    }
Parse response

@param array $responses
@return array