array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.odbc-field-len.php', 1 => 'odbc_field_len', 2 => 'Get the length (precision) of a field', ), 'up' => array ( 0 => 'ref.uodbc.php', 1 => 'ODBC Функції', ), 'prev' => array ( 0 => 'function.odbc-fetch-row.php', 1 => 'odbc_fetch_row', ), 'next' => array ( 0 => 'function.odbc-field-name.php', 1 => 'odbc_field_name', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uodbc/functions/odbc-field-len.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

odbc_field_len

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

odbc_field_lenGet the length (precision) of a field

Опис

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

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

Параметри

statement

The ODBC result object.

field

The field number. Field numbering starts at 1.

Значення, що повертаються

Returns the field length, or false on error.

Журнал змін

Версія Опис
8.4.0 statement expects an Odbc\Result instance now; previously, a resource was expected.

Прогляньте також