about 9 years ago
With use of range() function , it creates the array contains the range of an element.
It will return an array of element from low to high.
Syntax :
copytext
range(low,high,step)
Example :
<?php$number = range(0,50,10);print_r ($number);?>
<?php $number = range(0,50,10); print_r ($number); ?>
Output:
Array ( [0] => 0 [1] => 10 [2] => 20 [3] => 30 [4] => 40 [5] => 50 )
Can you help out the community by solving one of the following PHP problems?
Can you Spot the Error in this PHP Code?
How to generate report like pivot table from php 3d...
Which Parts Of Php Not To Learn ?
Do activity (Answer, Blog) > Earn Rep Points > Improve Rank > Get more opportunities to work and get paid!
For more topics, questions and answers, please visit the Tech Q&A page.
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Comment(s)