Home > PHP > Function > SQLite > SQLiteUnbuffered->fetchSingle()

SQLiteUnbuffered->fetchSingle()

SQLiteUnbuffered->fetchSingle - Fetches the first column of a result set as a string

Syntax

string SQLiteUnbuffered->fetchSingle (resource $result, bool $decode_binary, bool $decode_binary, bool $decode_binary, resource $result, bool $decode_binary, bool $decode_binary, bool $decode_binary, resource $result, bool $decode_binary, bool $decode_binary, bool $decode_binary)

Arguments

  • result - The SQLite result resource. This parameter is not required when using the object-oriented method.
  • decode_binary - When the decode_binary parameter is set to TRUE (the default), PHP will decode the binary encoding it applied to the data if it was encoded using the sqlite_escape_string(). You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.
  • decode_binary
  • decode_binary
  • result - The SQLite result resource. This parameter is not required when using the object-oriented method.
  • decode_binary - When the decode_binary parameter is set to TRUE (the default), PHP will decode the binary encoding it applied to the data if it was encoded using the sqlite_escape_string(). You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.
  • decode_binary
  • decode_binary
  • result - The SQLite result resource. This parameter is not required when using the object-oriented method.
  • decode_binary - When the decode_binary parameter is set to TRUE (the default), PHP will decode the binary encoding it applied to the data if it was encoded using the sqlite_escape_string(). You should normally leave this value at its default, unless you are interoperating with databases created by other sqlite capable applications.
  • decode_binary
  • decode_binary

Description

Object oriented style (method):

Version

PHP 5, PECL sqlite >= 1.0.1

Return value

Returns the first column value, as a string.