Previous Page
fetchTableList()

Solar_Sql_Adapter
fetchValue()

Next Page
getCache()

fetchValue()

public mixed fetchValue ( array|string $spec, array $data default array () )

Fetches the very first value (i.e., first column of the first row).

Parameters

  • (array|string) $spec: An array of component parts for a SELECT, or a literal query string.
  • (array) $data: An associative array of data to bind into the SELECT statement.

Returns

  • (mixed)

Description

Fetches the very first value (i.e., first column of the first row).

When $spec is an array, automatically sets LIMIT 1 OFFSET 0 to limit the results to a single row.