当前位置:网站首页>What does range mean in PHP
What does range mean in PHP
2022-07-04 07:47:00 【Yisu cloud】
php in range What does it mean
This article mainly introduces “php in range What does it mean ” Knowledge about , Xiaobian shows you the operation process through practical cases , The operation method is simple and fast , Practical , Hope this article “php in range What does it mean ” The article can help you solve problems .
stay PHP in ,range() Function is to create an array containing elements of a specified range , This function can return an array of elements between the specified two parameters , The grammar is “range(low,high,step)”.
The operating environment of this tutorial :windows10 System 、PHP7.1 edition 、DELL G3 The computer
php in range What does that mean?
range() Function to create an array containing elements of a specified range .
This function returns a containing from low To high An array of elements between .
notes : If low Parameter is greater than the high Parameters , Then the array created will be from high To low.
grammar
range(low,high,step)
Parameters describe
low It's necessary . Specifies the minimum value of an array element .
high It's necessary . Specifies the maximum value of an array element .
step Optional . Specifies the number of steps between elements . The default is 1.
Examples are as follows :
<?php $number = range(0,5); print_r ($number); ?>
Output results :
About “php in range What does it mean ” That's all for , Thanks for reading . If you want to know more about the industry , You can pay attention to the Yisu cloud industry information channel , Xiaobian will update different knowledge points for you every day .
边栏推荐
- I was pressed for the draft, so let's talk about how long links can be as efficient as short links in the development of mobile terminals
- Linear algebra 1.1
- 1、卡尔曼滤波-最佳的线性滤波器
- Zephyr 學習筆記2,Scheduling
- Take you to master the formatter of visual studio code
- [gurobi] establishment of simple model
- R language uses cforest function in Party package to build random forest based on conditional inference trees, uses varimp function to check feature importance, and uses table function to calculate co
- This article is enough for learning advanced mysql
- ZABBIX monitoring system deployment
- Rhcsa day 3
猜你喜欢
window上用.bat文件启动项目
PCIE知识点-010:PCIE 热插拔资料从哪获取
Oceanbase is the leader in the magic quadrant of China's database in 2021
NPM run build error
Project 1 household accounting software (goal + demand description + code explanation + basic fund and revenue and expenditure details record + realization of keyboard access)
The idea of implementing charts chart view in all swiftui versions (1.0-4.0) was born
This article is enough for learning advanced mysql
博客停更声明
Take you to master the formatter of visual studio code
Ecole bio rushes to the scientific innovation board: the annual revenue is 330million. Honghui fund and Temasek are shareholders
随机推荐
[Chongqing Guangdong education] National Open University spring 2019 770 real estate appraisal reference questions
How to send mail with Jianmu Ci
Unity opens the explorer from the inspector interface, selects and records the file path
Rapidjson reading and writing JSON files
节点基础~节点操作
Wechat has new functions, and the test is started again
[Flink] temporal semantics and watermark
R language uses cforest function in Party package to build random forest based on conditional inference trees, uses varimp function to check feature importance, and uses table function to calculate co
【Go基础】2 - Go基本语句
博客停更声明
Is l1-029 too fat (5 points)
墨者学院-PHPMailer远程命令执行漏洞溯源
L1-021 important words three times (5 points)
Zephyr study notes 2, scheduling
The IP bound to the socket is inaddr_ The meaning of any htonl (inaddr_any) (0.0.0.0 all addresses, uncertain addresses, arbitrary addresses)
Activiti常見操作數據錶關系
Types of references in BibTex
Blog stop statement
Oracle stored procedures and functions
运动【跑步 01】一个程序员的半马挑战:跑前准备+跑中调整+跑后恢复(经验分享)