php8.5
Home/ Manual/ uodbc / functions/ odbc_field_type

odbc_field_type

PHP function Edit on GitHub ✎

(PHP 4, PHP 5, PHP 7, PHP 8)

Datatype of a field

Description

odbc_field_type(Odbc\Result $statement, int $field): string|false

Gets the SQL type of the field referenced by number in the given result identifier.

Parameters

statement

Object.

field

The field number. Field numbering starts at 1.

Return Values

Returns the field type as a string, or false on error.

Changelog

VersionDescription

Source: reference/uodbc/functions/odbc-field-type.xml · from the official PHP manual (php/doc-en)