pg_num_rows

 int pg_num_rows ( resource $result ) 

説明

pg_num_rows() will return the number of rows in a PostgreSQL result resource. Note: This function used to be called pg_numrows().

戻り値

The number of rows in the result. On error, -1 is returned.