phpDocumentor

MySqlResult
in package
implements Iterator

la classe MySqlResult permet d'utiliser le résultat d'une requête comme un itérateur

Tags
implements

Iterator<int, array<string, string>>

Table of Contents

Interfaces

Iterator

Constants

ErrorRewind  = 'MySqlResult::ErrorRewind'

Properties

$ctuple  : array<string, string>|null
$firstDone  : bool
$result  : mysqli_result|null

Methods

__construct()  : mixed
current()  : array<string, string>
key()  : int
next()  : void
rewind()  : void
valid()  : bool

Constants

ErrorRewind

public mixed ErrorRewind = 'MySqlResult::ErrorRewind'

Properties

$ctuple

protected array<string, string>|null $ctuple = \null

$firstDone

protected bool $firstDone = \false

$result

protected mysqli_result|null $result = \null

Methods

__construct()

public __construct(mysqli_result $result) : mixed
Parameters
$result : mysqli_result

current()

public current() : array<string, string>
Return values
array<string, string>

valid()

public valid() : bool
Return values
bool

        
On this page

Search results