I have been usingc++
andPython
to do the questions before, but suddenly I usedPHP
to do the questions. As a result, after I wrote the method, I found that I couldn’t input it, which really screwed me up (I have no regrets). . .
For the record, I am also a man who can type in PHP (proud face)
// 一行输入,换行结束$r = fgets(STDIN); // 输入的前5个字符$e = fread(STDIN, 5); // 一个字符$s = fgetc(STDIN);
The above introduces the standard input of PHP, including php, and other aspects. I hope it will be helpful to friends who are interested in PHP tutorials.