给定一个数组,例如...
$array = array();
$array[0] = "blue" or "red" or "green" or "brown";
我将如何使用它来评估 if 语句并回显它?例如...
If ($ans1 = $array[0]) {
echo "correct answer $array[0]"; // this should display "blue or red
// or green or brown"
}