Skip to content

Instantly share code, notes, and snippets.

@gotakk
Created March 6, 2015 11:07
Show Gist options
  • Save gotakk/258a93a0e399e9ae6f09 to your computer and use it in GitHub Desktop.
Save gotakk/258a93a0e399e9ae6f09 to your computer and use it in GitHub Desktop.
little reimplementation of readline.php
<?php
function readline($prompt = '')
{
echo $prompt;
return rtrim(fgets(STDIN), "\n");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment