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
Code Examples

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.

Example of oci_num_fields

Show all examples for oci_num_fields

PHP Version:


Function oci_num_fields:

Oracle OCI8 Functions

Most used PHP functions