当前位置:网站首页>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 .
边栏推荐
- JVM -- class loading process and runtime data area
- Leetcode(215)——数组中的第K个最大元素
- Mysql database - function constraint multi table query transaction
- 线性代数1.1
- OKR vs. KPI figure out these two concepts at once!
- 促进OKR落地的工作总结该如何写?
- Scanf read in data type symbol table
- L1-022 odd even split (10 points)
- Project 1 household accounting software (goal + demand description + code explanation + basic fund and revenue and expenditure details record + realization of keyboard access)
- 真空介电常数和真空磁导率究竟是由什么决定的?为何会存在这两个物理量?
猜你喜欢

Easy to understand: understand the time series database incluxdb

Oracle stored procedures and functions

window上用.bat文件启动项目

JVM -- class loading process and runtime data area

In the era of low code development, is it still needed?

墨者学院-Webmin未经身份验证的远程代码执行

Distributed transaction management DTM: the little helper behind "buy buy buy"

With excellent strength, wangchain technology, together with IBM and Huawei, has entered the annual contribution list of "super ledger"!

Zephyr study notes 2, scheduling

Take you to master the formatter of visual studio code
随机推荐
[real case] how to deal with the failure of message consumption?
Zephyr 学习笔记2,Scheduling
Scanf read in data type symbol table
Introduction to sap commerce cloud B2B organization function
神经网络入门(下)
Zabbix agent主动模式的实现
User login function: simple but difficult
时序数据库 InfluxDB 2.2 初探
Go learning notes - constants
Basic DOS commands
Set and modify the page address bar icon favicon ico
L1-023 output gplt (20 points)
Introduction to neural network (Part 2)
Thesis learning -- time series similarity query method based on extreme point characteristics
2022-021ARTS:下半年开始
In the era of low code development, is it still needed?
Is l1-029 too fat (5 points)
Take you to master the formatter of visual studio code
MySQL中的文本處理函數整理,收藏速查
Zephyr 学习笔记1,threads