我想列出变量,如水、爆米花、糖果、果汁等。在这个列表中,我有大约30个变量。我需要设置一种方式,在用户输入他们的货币总额后,它将列出他们可以购买的每个项目的数量。dollars you can buy" +
"# of Popcorn or # number of candy or # of juice etc"); 多维数组是最好的方法吗但是,很明显,这对于30+项目来说是非常繁琐的
if (($x > 0 && 256 <= $x) || ($y > 0 && 256 <= $y)) { } else {
echo '<br><div align="center"><b>X and Y must be over 0 but equal or less than 256.也就是说,如果X大于0,X</