SQLite 函数
PHP Manual

sqlite_key

SQLiteResult::key

(PHP 5 >= 5.1.0 and < 5.4.0)

sqlite_key -- SQLiteResult::keyReturns the current row index

说明

int sqlite_key ( resource $result )

面向对象风格 (method):

int SQLiteResult::key ( void )

sqlite_key() returns the current row index of the buffered result set result.

参数

result

The SQLite result resource. This parameter is not required when using the object-oriented method.

Note:

此函数不能用于未缓冲的结果句柄。

返回值

Returns the current row index of the buffered result set result.

更新日志

版本 说明
5.0.4 Prior to PHP 5.0.4, sqlite_key() was only able to be called as a method on a SQLiteResult object, not procedurally.

参见


SQLite 函数
PHP Manual