在命令行下PHP实现的标准输入与输出方式 <?php// ask for inputfwrite(STDOUT, "Enter your name: "); // get input$name = trim(fgets(STDIN)); 接收用户输入 // write input backfwrite(STDOUT, "Hello, $name!... blzxadmin179 4年前 (2019-07-08) 256℃ 暂无评论 7喜欢