Asks a question to the user
public ask ( string | array $question, string $default = null, array $autocomplete = null ) : string | ||
$question | string | array | The question to ask. If an array each array item is turned into one line of a multi-line question |
$default | string | The default answer if none is given by the user |
$autocomplete | array | List of values to autocomplete. This only works if "stty" is installed |
return | string | The user answer |