Created
October 24, 2021 16:40
-
-
Save ik5/ae2694e5f1318aad3a726fec41322583 to your computer and use it in GitHub Desktop.
example on reading from stdin in php
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 | |
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