sqlsrv_num_fields

sqlsrv_num_fields - Retrieves the number of fields (columns) on a statement
Manual
Code Examples

sqlsrv_num_fields( resource$stmt ): mixed

Retrieves the number of fields (columns) on a statement.

Parameters

stmt

The statement for which the number of fields is returned. sqlsrv_num_fields can be called on a statement before or after statement execution.

Return Values

Returns the number of fields on success. Returns false otherwise.

Related Functions

Example of sqlsrv_num_fields

Show all examples for sqlsrv_num_fields

PHP Version: