当PHP脚本从命令行(Windows)运行时,如何从script清除控制台屏幕。
例如 :
while(true){
// sleep for 10 seconds , then clear the console
sleep(10);
// below command execute to clear the console windows
**COMMAND**
}
对于Windows用户:
system('cls');
对于Linux用户:
system('clear');
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句