Getting first robot
$robot = $connection->fetchOne("SELECT * FROM robots");
print_r($robot);
Getting first robot with associative indexes only
$robot = $connection->fetchOne("SELECT * FROM robots", \ManaPHP\Db::FETCH_ASSOC);
print_r($robot);
public function fetchOne($sql, $bind = [], $fetchMode = \PDO::FETCH_ASSOC)
{
$result = $this->query($sql, $bind, $fetchMode);
return $result->fetch();
}