public in ( string $prompt, string | array | null $options = null, string | null $default = null ) : mixed | ||
$prompt | string | Prompt text. |
$options | string | array | null | Array or string of options. |
$default | string | null | Default input value. |
return | mixed | Either the default value, or the user-provided input. |