oci_num_fields
PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0
oci_num_fields - Returns the number of result columns in a statement
Manual
oci_num_fields(
resource$statement ): int
Gets the number of columns in the given statement.
Parameters
- statement
-
A valid OCI statement identifier.
Return Values
Returns the number of columns as an int.
Notes
Note:
In PHP versions before 5.0.0 you must use ocinumcols instead. This name still can be used, it was left as alias of oci_num_fields for downwards compatability. This, however, is deprecated and not recommended.