php8.5
Home/ Manual/ sqlite3 / sqlite3result/ SQLite3Result::columnType

SQLite3Result::columnType

PHP function Edit on GitHub ✎

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

Returns the type of the nth column

Description

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

Returns the type of the column identified by column.

Parameters

column

The numeric zero-based index of the column.

Return Values

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.

Source: reference/sqlite3/sqlite3result/columntype.xml · from the official PHP manual (php/doc-en)