2019-07-25から1日間の記事一覧
php consoleでyes noを入力させて処理を分岐したいけど http://note.onichannn.net/archives/1136 while(1) { $input = fgets(STDIN, 4096); if($input == "n\n" || $input == "no\n") { // 処理を終了する die(); } if($input == "y\n" || $input == "yes\n…
php consoleでyes noを入力させて処理を分岐したいけど http://note.onichannn.net/archives/1136 while(1) { $input = fgets(STDIN, 4096); if($input == "n\n" || $input == "no\n") { // 処理を終了する die(); } if($input == "y\n" || $input == "yes\n…