PHP » PYTHON |
login |
register |
about
|
# if low <= high: range(low, high+1) range(low, high+1, step) # if low >= high: range(low, high-1, -1) range(low, high-1, -step) range(PHP 4, PHP 5) range — Create an array containing a range of elements DescriptionCreate an array containing a range of elements. Parameters
Return ValuesReturns an array of elements from low to high , inclusive. If low > high, the sequence will be from high to low. Changelog
Examples
Example #1 range() examples
<?php
|
more
Recently updated
more
Most requested
more
Last requests
|