Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是我的代码。我认为问题在于$retrieve["'choice'.'$i'"];这里的正确格式是什么?
$retrieve["'choice'.'$i'"];
$i = '1'; do { $choice[$i] = $retrieve["'choice'.'$i'"]; $i++; } while ($i <= $numberofchoices); echo $choice['1']; //not working!!
尝试这个:
$i = '1'; do { $choice[$i] = $retrieve["choice".$i]; $i++; } while ($i <= $numberofchoices); echo $choice['1'];