编程语言
首页 > 编程语言> > 010-PHP输出数组中第某个元素

010-PHP输出数组中第某个元素

作者:互联网

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

 

标签:March,August,元素,June,010,数组,PHP
来源: https://www.cnblogs.com/tianpan2019/p/10981904.html