Created
September 27, 2018 15:08
-
-
Save odinuv/b6a873fbd59116cddc218b3549a81e2b to your computer and use it in GitHub Desktop.
Testing the untestable: Basic extraction
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$stmt = $pdo->prepare('SELECT …'); | |
$stmt->execute(); | |
while ($row = $stmt->fetch()) { | |
write_row_to_csv($row); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment