Longhorn PHP 2025 - Speakers and Schedule Announced!

odbc_field_len

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

odbc_field_lenフィールドの長さ (精度) を得る

説明

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

指定した ODBC 結果 ID の番号で参照されるフィールドの長さを取得します。

パラメータ

statement

ODBC 結果オブジェクト

field

フィールド番号。フィールド番号は 1 から始まります。

戻り値

フィールドの長さ、あるいはエラー時に false を返します。

変更履歴

バージョン 説明
8.4.0 引数 statement は、Odbc\Result クラスのインスタンスを期待するようになりました。 これより前のバージョンでは、resource を期待していました。

参考

  • 浮動小数点の精度を得るには odbc_field_scale() - フィールドの精度を得る

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top