hi all
im looking to create a function that I need to fill an array with the range of numbers which are between to arguments passed to the function as such:
myFunction($fieldname, $firstval, $lastval) {
$myArr = array();
}
What I need help with, is populating the array with the values sent to the function, so let say $firstval is a number 3 and $lastval is a number 435. How would I fill those values in the array starting at 3 and going right through all the next numbers up until 435? An example of code would be helpful.
Many Thanks for reading.