了解数组创建方式,数组分为无自定义的索引数组以及有定义的关联数组,其中关联数组的key可以是数字和字母,最好不用汉字,数组打印用print_r,数组有一维数组、二维数组、三维数组等,数组最好不要超过三维,数组循环用,foreach(变量名 as key或value),难点在多维数组循环,理解循环原理,以及多维循环嵌套foreach用法。
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All commentsSpeak rationally on civilized internet, please comply with News Comment Service Agreement