$dbh = new PDO($dsn, $username, $password); $stmt = $dbh->query($query); $array = $stmt->fetch(); $stmt->closeCursor();
What would fetch() or fetchAll() method return when no records were found?
The answer is a FALSE, after I tested it myself.