Home > PHP > Function > OCI8 > oci_num_fields()

oci_num_fields()

oci_num_fields - Returns the number of result columns in a statement

Syntax

int oci_num_fields (resource $statement)

Arguments

  • statement - A valid OCI statement identifier.

Description

Gets the number of columns in the given statement.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns the number of columns as an integer, or FALSE on errors.