Code
Result

PHP code example: sqlsrv_num_fields

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

You can try this function yourself. Just edit the code and on "Run" to see the result.