我有以下关键字。我希望最终答案(可能是 answer_1、answer_2、answer_3)是包含“问题”中的关键字的答案。
$question = 'how old are you'
$key_word_1 = array('old', 'are');
$answer_1 = 'this is my age';
$key_word_2 = array('yes', 'no');
$answer_2 = 'this is a question';
$key_word_3 = array('tall', 'short');
$answer_3 = 'this are my measures';
$key_word_4 = array('back', 'blue');
$answer_4 = 'My colorus';
echo $final_answer;
'this is my age' . #----> because 'old' and 'are' are contained in $question
小唯快跑啊