|
SQLite3::querySingleExecutes a query and returns a single result Beschreibung
public mixed SQLite3::querySingle
( string
$query
[, bool $entire_row = false
] )Executes a query and returns a single result. Parameter-Liste
Rückgabewerte
Returns the value of the first column of results or an array of the entire
first row (if
If the query is valid but no results are returned, then
Invalid or failing queries will return Beispiele
Beispiel #1 SQLite3::querySingle example
<?phpDas oben gezeigte Beispiel erzeugt eine ähnliche Ausgabe wie:
string(5) "Scott"
Array
(
[username] => Scott
[email] => scott@example.com
)
|