StatementInterface
extends
Iterator
in
Tags
Table of Contents
Methods
- bindParam() : bool
- bindValue() : bool
- execute() : bool
- fetch() : object|array<string|int, mixed>|string|false
- fetchAll() : array<string|int, mixed>
- fetchColumn() : object|bool
- Returns a first column of the next results row.
Methods
bindParam()
public
bindParam(int|string $parameter, TermInterface &$variable) : bool
Parameters
- $parameter : int|string
- $variable : TermInterface
Return values
boolbindValue()
public
bindValue(int|string $parameter, TermInterface $value) : bool
Parameters
- $parameter : int|string
- $value : TermInterface
Return values
boolexecute()
public
execute([array<string|int, mixed> $parameters = [] ]) : bool
Parameters
- $parameters : array<string|int, mixed> = []
Return values
boolfetch()
public
fetch([int $fetchStyle = PDO::FETCH_OBJ ]) : object|array<string|int, mixed>|string|false
Parameters
- $fetchStyle : int = PDO::FETCH_OBJ
Return values
object|array<string|int, mixed>|string|falsefetchAll()
public
fetchAll([int $fetchStyle = PDO::FETCH_OBJ ]) : array<string|int, mixed>
Parameters
- $fetchStyle : int = PDO::FETCH_OBJ
Return values
array<string|int, mixed>fetchColumn()
Returns a first column of the next results row.
public
fetchColumn() : object|bool
If there are no more results returns `false.
Please note false
can be also a valid value of the ASK query.