src/Command/ServerInfo.php
protected function parseDatabaseStats($str)
    {
        $db = array();

        foreach (explode(',', $str) as $dbvar) {
            list($dbvk, $dbvv) = explode('=', $dbvar);
            $db[trim($dbvk)] = $dbvv;
        }

        return $db;
    }
protected function parseDatabaseStats($str)
    {
        $db = array();

        foreach (explode(',', $str) as $dbvar) {
            list($dbvk, $dbvv) = explode('=', $dbvar);
            $db[trim($dbvk)] = $dbvv;
        }

        return $db;
    }
protected function parseDatabaseStats ( $ str ) { $ db = array ( ) ; foreach ( explode ( ',' , $ str ) as $ dbvar ) { list ( $ dbvk , $ dbvv ) = explode ( '=' , $ dbvar ) ; $ db [ trim ( $ dbvk ) ] = $ dbvv ; } return $ db ; }
Extracts the statistics of each logical DB from the string buffer.

@param string $str Response buffer.

@return array
Extracts the statistics of each logical DB from the string buffer .