PHP cli getting input from user and then dumping into variable possible?

后端 未结 3 534
野的像风
野的像风 2020-11-29 19:59

Is it possible to get input from a user using php cli and then dump the input into a variable and then the script goes ahead.

Just like the c++ cin func

3条回答
  •  迷失自我
    2020-11-29 20:33

    Have a look at this PHP manual page http://php.net/manual/en/features.commandline.php

    in particular

    
    

提交回复
热议问题