Skip to content

Instantly share code, notes, and snippets.

View Sxzar's full-sized avatar
💻
Available

Stefan Nicolau Sxzar

💻
Available
  • Bucharest
View GitHub Profile
@Sxzar
Sxzar / rebilly.md
Created July 11, 2025 10:58
Rebilly Developer Coding Exemplar - Stefan Nicolau

Question 1

$stmt = $pdo->prepare('SELECT * FROM largeTable');
$stmt->execute();
$results = (
	function(PDOStatemnt $stmt) {
		$stmt->setFetchMode(PDO::FETCH_ASSOC);
		while($row = $stmt->fetch()) {
			yield $row;