假如我們還想要列印出陣列的key,則可以改用第2 種語法如下:. <?php foreach ($arr as $key => $value) { echo "Array: $key, $value \n"; } ?>.
確定! 回上一頁