With the getRow method, we can get a row that will be returned by the query we wrote. Ideal for reaching the values of a member or a content.

<?php
$user = DB::getRow('SELECT * FROM users WHERE id = 1 LIMIT 1');
 
echo 'Hello ' . $user->name . '!';
echo 'E-mail address: ' . $user->email;
?>