protected function askWithForcedAnswers($question, $answers)
	{
		// Ask the question
		do $answer = $this->ask($question.' ('.implode('|', $answers).')');

		// Continue to ask the question until we get a valid answer
		while (!in_array($answer, $answers));

		// Return the answer
		return $answer;
	}
protected function askWithForcedAnswers($question, $answers)
	{
		// Ask the question
		do $answer = $this->ask($question.' ('.implode('|', $answers).')');

		// Continue to ask the question until we get a valid answer
		while (!in_array($answer, $answers));

		// Return the answer
		return $answer;
	}
protected function askWithForcedAnswers ( $ question , $ answers ) { // Ask the question do $ answer = $ this -> ask ( $ question . ' (' . implode ( '|' , $ answers ) . ')' ) ; // Continue to ask the question until we get a valid answer while ( ! in_array ( $ answer , $ answers ) ) ; // Return the answer return $ answer ; }
Asks a question that must provide an answer from a specfic set of answers

@param  string $question The question to ask.
@param  array  $answers  A set of possible answers.
@return string           The provided answer.
Asks a question that must provide an answer from a specfic set of answers