当前位置:Gxlcms > PHP教程 > 初始化数组_PHP

初始化数组_PHP

时间:2021-07-01 10:21:17 帮助过:6人阅读




初始化数组


$monthName = array(1=>"January", "February", "March",//初始化一个数组
"April", "May", "June", "July", "August",
"September", "October", "November", "December");
print(" 英语的“5月”是 $monthName[5]
\n");//打印数组中的第6个元素
?>



人气教程排行