Welcome Guest, Not a member yet? Register   Sign In
Array population..... :(
#1

[eluser]Unknown[/eluser]
Hello ALL
I Need HELP... I like to populate an array with numbers like "0 to 99".
I want to populate the array with a for loop so that i can "dynamically" show
numbers from 0 to 99. i tried as below....
//----------------

for($j=0,$i=0;$i<100;$j++,$i++)
$data = array($j=>$i);

echo form_dropdown('age','$data','0');

-----------------//

so help plzzz.
#2

[eluser]Seppo[/eluser]
I think is better to use range instead.




Theme © iAndrew 2016 - Forum software by © MyBB