This is my array:

When I used mysqli_query in a different script, this style worked:
while ($printTest = mysqli_fetch_array($results)) {
echo $printTest['id'] . "<br />";
echo $printTest['questions'] . "<br />";
echo $printTest['answers'] . "<br />";
}
I can't figure out how to do the same thing with a PDO created array. With PDO, I can use foreach, like this:
foreach ($queryRows as $test=>questions){
echo $test;
}
Unfortunately, that doesn't give me access to id and answers in the same loop - which is important to me.
This is how I'm getting my PDO-generated array, currently:
$queryRows = $this->dbh->query("SELECT id, questions, answers FROM qarows WHERE usr = '$this->username'");
$queryRows = $queryRows->fetchAll(PDO::FETCH_ASSOC);
How do I access all 3 columns of my array, in a loop?
echo $test;outputting on each iteration?