Skip to content

Instantly share code, notes, and snippets.

@lelafa
lelafa / rebilly.markup
Last active October 7, 2025 13:23
rebilly dev excerceises
1.
$stmt = $pdo->prepare('SELECT * FROM largeTable');
$stmt->execute();
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
//row
}
2.
It breaks because the "superman" is on the first(0) position -> reurns 0, !str takes 0, turns it it to 1, considers it "true" and if executes