Documentation

StatementInterface extends Iterator

Tags
author

zozlak

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

execute()

public execute([array<string|int, mixed> $parameters = [] ]) : bool
Parameters
$parameters : array<string|int, mixed> = []
Return values
bool

fetch()

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|false

fetchAll()

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.

Return values
object|bool

        
On this page

Search results