Swoole\Coroutine\PostgreSQL->numRows(...)

Notice: ext-swoole is supported until v4.7.1, use ext-openswoole >= v4.7.1. Latest version: pecl install openswoole-4.9.1

Declaration

<?php
Swoole\Coroutine\PostgreSQL->numRows(resource $queryResult): int

Parameters

queryResult

The result of a executed SQL query which will be a PHP resource variable type.

Return

Returns an int of the total number of rows.


Description

Returns the number of rows from the SQL query.