## 例

`

     mixed sqlsrv_num_rows ( resource $stmt )

`

## 説明

Retrieves the number of rows in a result set. This function requires that the statment resource be created with a static or keyset cursor. For more information, see sqlsrv_query(), sqlsrv_prepare(), or » Specifying a Cursor Type and Selecting Rows in the Microsoft SQLSRV documentation.

## 戻り値

Returns the number of rows retrieved on success and FALSE if an error occured. If a forward cursor (the default) or dynamic cursor is used, FALSE is returned.