Possible Duplicate:
PHP: fill an array with numbers
I'd like code a PHP function that creates an array with natural numbers from 1 to a given number and I have not a clue of how to do this.
e.g : if I give the function the natural number 3 then the array should be 1,2,3 ; if I give the function the integer 2 1,2 ; if 5 1,2,3,4,5