Problem Statement
Which method retrieves rows from a PDO statement as an associative array?
Explanation
The fetch method of PDOStatement retrieves the next row from the result set. It can return associative or numeric arrays depending on fetch mode.
Code Solution
SolutionRead Only
$row = $stmt->fetch(PDO::FETCH_ASSOC);
