public choose ( array $items, string $text = 'Enter a number to choose an item:', mixed $default = null ) : mixed | ||
$items | array | An associative array of choices. |
$text | string | Some text to precede the choices. |
$default | mixed | A default (as a key in $items). |
return | mixed | The chosen item (as a key in $items). |