1
我是一個新手,並試圖爲我的大學班做到這一點。 我已經創建了一個名爲數組鳥: 這裏是我的代碼:打印一個數組中的特定項目
<?php // This script creates an array called birds and then prints out the birds 1-3 and then prints the birds 0,, 2 and 4
$birds = array ("Whip-poor-will|Chickadee|Pileated Woodpecker|Blue Jay|Rufus-sided Towhee|Scarlet Tanager");
我需要打印出使用的foreach陣列內的具體項目。 將在未來的代碼是
Foreach($birds as $key =>value){print "$key $1,2,3 <br>";}
感謝大家的幫助!我完成了一個,並學習其他新東西。多維數組!聽起來很有趣:-)也許LOL – Karen 2010-09-27 13:23:43