pg_num_rows

Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Returns the number of rows in a result
<?php pg_num_rows(PgSql\Result $result): int
<?php     public static function castResult($result, array $a, Stub $stub, bool $isNested)

    {

        $a['num rows'] = pg_num_rows($result);

        $a['status'] = pg_result_status($result);

        if (isset(self::RESULT_STATUS[$a['status']])) {

            $a['status'] = new ConstStub(self::RESULT_STATUS[$a['status']], $a['status']);