Skip to content

Instantly share code, notes, and snippets.

@ik5
Created October 24, 2021 16:40
Show Gist options
  • Save ik5/ae2694e5f1318aad3a726fec41322583 to your computer and use it in GitHub Desktop.
Save ik5/ae2694e5f1318aad3a726fec41322583 to your computer and use it in GitHub Desktop.
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