helpers\BaseConsole select()

select() public static method

Gives the user an option to choose from. Giving '?' as an input will show a list of options to choose from and their explanations.

public static string select ( $prompt, $options = [] )
$prompt string

The prompt message

$options array

Key-value array of options to choose from

return string

An option character the user chose

doc_Yii
2016-10-30 17:04:39
Comments
Leave a Comment

Please login to continue.