db2_num_fields

PECL ibm_db2 >= 1.0.0
db2_num_fields - Returns the number of fields contained in a result set
Manual
Code Examples

Example #1 Retrieving the number of fields in a result set

Result: There are 4 columns in the result set.
PHP Version: