Select::Fetch

Run the method fetch from PDO statement

Sintaxe

namespace ProtocolLive\PhpLiveDb;

/**

 */
final class Select{
public function Fetch(
bool $FetchBoth = false,
int $Offset = 0
):array|false;
}
Parameters

$FetchBoth - If the result comes with numeric and associative indexes or only associative;

$Offset - The same of PDO statement cursorOffset

See more

- Run

Examples

$consult = $Db->Select('users')
->Run(
Fetch: true
)
;
while(($line = $consult->Fetch()) !== false)
echo $line['email'];
endwhile;