array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'sqlite3result.columntype.php', 1 => 'SQLite3Result::columnType', 2 => 'Returns the type of the nth column', ), 'up' => array ( 0 => 'class.sqlite3result.php', 1 => 'SQLite3Result', ), 'prev' => array ( 0 => 'sqlite3result.columnname.php', 1 => 'SQLite3Result::columnName', ), 'next' => array ( 0 => 'sqlite3result.construct.php', 1 => 'SQLite3Result::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/sqlite3/sqlite3result/columntype.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

SQLite3Result::columnType

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

SQLite3Result::columnTypeReturns the type of the nth column

说明

public SQLite3Result::columnType(int $column): int|false

Returns the type of the column identified by column.

参数

column

The numeric zero-based index of the column.

返回值

Returns the data type index of the column identified by column (one of SQLITE3_INTEGER, SQLITE3_FLOAT, SQLITE3_TEXT, SQLITE3_BLOB, or SQLITE3_NULL), or false if the column does not exist.