phpday 2027 - Call for Papers

odbc_field_num

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

odbc_field_num — カラム番号を返す

説明

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

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

パラメータ

statement

ODBC 結果オブジェクト

field

フィールド名。

戻り値

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

変更履歴

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

User Contributed Notes

There are no user contributed notes for this page.
Adding new notes is disabled. Please see the links in the Found A Problem? section.
To Top