初始化数组_PHP
程序员文章站
2022-04-11 13:49:09
...
$monthName = array(1=>"January", "February", "March",//初始化一个数组
"April", "May", "June", "July", "August",
"September", "October", "November", "December");
print(" 英语的“5月”是 $monthName[5] 。
\n");//打印数组中的第6个元素
?>