pg_num_rows
symfony/var-dumper
Supported Versions: PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
Returns the number of rows in a result
pg_num_rows
(
PgSql\Result $result
):
int
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'
]);
Caster/PgSqlCaster.php