Skip to content

Instantly share code, notes, and snippets.

@ik5
Created October 24, 2021 16:40
example on reading from stdin in php
<?php
while (!feof(STDIN)) {
$f = fgets(STDIN);
if ($f) {
echo ">> $f\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment