fetchAll(PDO::FETCH_ASSOC); $ret = []; while ($row = $res->fetch(PDO::FETCH_ASSOC)) { $ret[$row['machineuuid']] = $row; } return $ret; } }