I have a script to find a whole number, but I want php to make an array of all the integers from 1 to that number. So, if $n is 5, I want to have an array that contains: 1, 2, 3, 4, and 5. How do I code this? 😃
$myArray = range(1, $n);
Ah! I assumed the answer was obvious. Thanks very much.
Don't forget to mark this thread resolved.