readline
Description
Syntax
readline(?string $prompt = null): string|false
Parameters
prompt
You may specify a string with which to prompt the user.
Return
Returns a single string from the user. The line returned has the ending newline removed. If there is no more data to read, then false is returned.
Examples
1 · void
<? $return = readline(); var_export($return); ?>
false
2 · prompt
<? $prompt = "myprompt"; $return = readline($prompt); var_export($return); ?>
false