I have been using c++
and Python
to do the questions before, but suddenly I used PHP
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)
<code><span>// 一行输入,换行结束</span><span>$r</span> = fgets(STDIN); <span>// 输入的前5个字符</span><span>$e</span> = <span>fread</span>(STDIN, <span>5</span>); <span>// 一个字符</span><span>$s</span> = fgetc(STDIN);</code>
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.