PHP CLI: How to read a single character of input from the TTY (without waiting for the enter key)?

前端 未结 4 1509
醉梦人生
醉梦人生 2020-11-29 02:53

I want to read a single character at-a-time from the command line in PHP, however it seems as though there is some kind of input buffering from somewhere preventing this.

4条回答
提交回复
热议问题