Blogger Information
Blog 250
fans 3
comment 0
visits 321520
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
数组函数:range()的作用
梁凯达的博客
Original
4475 people have browsed it

range()

函数作用:用于创建一个指定范围的数组。

函数参数:range(开始数,结束数,步长);

说明:步长是指开始数和结束数之间的间隔。

range()函数常用于快速的创建多个连续或固定间隔的索引数组。

实例

$arr = range(1,100,3);
var_dump($arr);

运行实例 »

点击 "运行实例" 按钮查看在线实例

Statement of this Website
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 comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post