|
PHP5中文手册
PDOStatement->getColumnMeta()(PHP 5 >= 5.1.0, PECL pdo:0.2-1.0.3) PDOStatement->getColumnMeta() — Returns metadata for a column in a result set 说明PDOStatement
array getColumnMeta
( int $column
)
Warning
本函数是实验性的。本函数的行为,包括函数名称以及其它任何关于本函数的文档可能会在没有通知的情况下随 PHP 以后的发布而改变。使用本函数风险自担。 Retrieves the metadata for a 0-indexed column in a result set as an associative array. Warning
Not all PDO drivers support PDOStatement->getColumnMeta(). 参数
返回值Returns an associative array containing the following values representing the metadata for a single column:
Returns FALSE if the requested column does not exist in the result set, or if no result set exists. 更新日志
范例
Example#1 Retrieving column metadata The following example shows the results of retrieving the metadata for a single column generated by a function (COUNT) in a PDO_SQLITE driver.
<?php 上例将输出:
|