Is is possible to set a default PDO fetch mode? February 15, 2023 by Tarik $connection = new PDO($connection_string); $connection->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_OBJ);