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
cin
Have a look at this PHP manual page http://php.net/manual/en/features.commandline.php
in particular