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 |