PDOFETCHOBJ
PDOFETCHOBJ refers to the fetch mode used with PHP's PDO extension to retrieve query results as objects. The actual constant to use in code is PDO::FETCH_OBJ, which is passed to fetch or fetchAll on a PDOStatement.
When using PDO::FETCH_OBJ, each row of the result set is returned as an instance of the built-in
This fetch mode is convenient when you prefer object-oriented access to fields instead of associative arrays.
$stmt = $pdo->query("SELECT id, username FROM users");
$row = $stmt->fetch(PDO::FETCH_OBJ);
Compared with PDO::FETCH_ASSOC, which returns arrays, PDO::FETCH_OBJ returns objects, which may influence how you structure the