pg_fetch_object

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Fetch a row as an object
<?php pg_fetch_object(    PgSql\Result $result,    ?int $row = null,    string $class = "stdClass",    array $constructor_args = []): object|false