array_rand 就會回傳一個 array ,裡面都是它挑出來的值的index。 <?php $types = [ '紅豆', '奶油', '羅蔔', '地瓜', '芋頭', ]; $indexes = array_rand($types, ...
確定! 回上一頁