PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0
oci_num_fields - Returns the number of result columns in a statement
oci_num_fields( resource$statement ): int
Gets the number of columns in the given statement.
A valid OCI statement identifier.
Returns the number of columns as an int.
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.
Show all examples for oci_num_fields