PHP 8.5.0 Beta 1 available for testing

odbc_field_num

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

odbc_field_numカラム番号を返す

説明

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

指定したODBC 結果オブジェクト におけるフィールド名に対応するカラムスロットの数を取得します。

パラメータ

statement

ODBC 結果オブジェクト

field

フィールド名。

戻り値

フィールド番号、あるいはエラー時に false を返します。 フィールド番号は、1 から始まります。

変更履歴

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

User Contributed Notes

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