Created
October 5, 2012 00:18
-
-
Save b0n/3837285 to your computer and use it in GitHub Desktop.
コマンドで実行されたPHPでユーザー入力を待つ方法
This file contains hidden or 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 | |
/** | |
* @see http://www.php.net/manual/en/features.commandline.io-streams.php | |
*/ | |
$input = fgets(STDIN,4096); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment