Home > Backend Development > PHP Tutorial > 初始化数组_PHP

初始化数组_PHP

WBOY
Release: 2016-06-01 12:30:24
Original
1157 people have browsed it



初始化数组



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


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template