ibase_field_info

(PHP 5, PHP 7)

ibase_field_infoGet information about a field

说明

ibase_field_info ( resource $result , int $field_number ) : array

Returns an array with information about a field after a select query has been run.

参数

result

An InterBase result identifier.

field_number

Field offset.

返回值

Returns an array with the following keys: name, alias, relation, length and type.

范例

Example #1 ibase_field_info() example

<?php
$rs 
ibase_query("SELECT * FROM tablename");
$coln ibase_num_fields($rs);
for (
$i 0$i $coln$i++) {
    
$col_info ibase_field_info($rs$i);
    echo 
"name: "$col_info['name']. "\n";
    echo 
"alias: "$col_info['alias']. "\n";
    echo 
"relation: "$col_info['relation']. "\n";
    echo 
"length: "$col_info['length']. "\n";
    echo 
"type: "$col_info['type']. "\n";
}
?>

参见

相关文章
php direct io 函数 gets stat information about the file descriptor fdphp php 选项/信息 函数 gets information about the garbage collectorphp gnupg 函数 returns an array with information about all keys that matches the given patternphp firebird/interbase 函数 return the number of rows that were affected by the previous queryphp firebird/interbase 函数 initiates a backup task in the service manager and returns immediatelyphp firebird/interbase 函数 request statistics about a databasephp firebird/interbase 函数 delete a user from a security databasephp firebird/interbase 函数 drops a databasephp firebird/interbase 函数 get information about a fieldphp firebird/interbase 函数 get the number of fields in a result setphp firebird/interbase 函数 return the number of parameters in a prepared queryphp firebird/interbase 函数 return information about a parameter in a prepared queryphp firebird/interbase 函数 request information about a database serverphp odbc 函数 returns information about a current connectionphp odbc 函数 retrieves information about data types supported by the data sourcephp paradox 函数 return lots of information about a paradox filephp rrd 函数 gets information about underlying rrdtool libraryphp wincache 函数 retrieves information about memory usage by the resolve file path cachephp wincache 函数 retrieves information about files cached in the session cachephp wincache 函数 retrieves information about session cache memory usage
关注编程学问公众号