sqlsrv_num_fields
sqlsrv_num_fields - Retrieves the number of fields (columns) on a statement
Manual
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.