input() public static method
Asks the user for input. Ends when the user types a carriage return (PHP_EOL). Optionally, It also provides a prompt.
public static string input ( $prompt = null ) | ||
---|---|---|
$prompt | string |
The prompt to display before waiting for input (optional) |
return | string |
The user's input |
Please login to continue.