In php, the range function creates an array containing a specified range unit.

Source: Internet
Author: User
In php, the range function creates an array containing a specified range unit.
This article introduces how to use the range function in php to create an array containing a specified range unit. For more information, see. Previously, we introduced a php method for quickly creating arrays, where the php range () function is used.

This article introduces how to use the range function in php to create an array containing a specified range unit. For more information, see.

Previously, we introduced a php method for quickly creating arrays, where the php range () function is used. For more information, see this article. This section describes how to use the range () function in php.

Example:

     

Array: array range (mixed $ start, mixed $ limit [, number $ step = 1]); $ start: sequence start value $ limit: sequence end value $ step: step value; (optional) the default value is 1. if the value is the same as $ start, an error is returned: Warning: range () [function. range]: step exceeds the specified range in/file location on line how many rows such:

     

For specific usage of the range () function, see: http://bbs.it-home.org/w3school/php/func_array_range.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.