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?
How To Force MySql With Php To Show Final Row Only?
Php problem
Converting code from C to PHP
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)