ifx_fieldtypes

(PHP 3 >= 3.0.3, PHP 4, PHP 5)

ifx_fieldtypes -- Informix SQL フィールドのリスト

説明

array ifx_fieldtypes ( resource result_id )

result_id のクエリについて、フィールド名をキーとし、 SQL フィールド型をデータとした連想配列を返します。 エラーの場合に FALSE を返します。

例 1. フィールド名および SQL フィールド型

<?php
$types
= ifx_fieldtypes($resultid);
if (!isset(
$types)) {
    
/* ... エラー ... */
}
foreach (
$types as $fname => $val) {
    echo
"$fname:\t type = $val\n";
}
?>