CodeIgniter Forums
useing a for loop to populate an array - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: useing a for loop to populate an array (/showthread.php?tid=47901)



useing a for loop to populate an array - El Forum - 12-27-2011

[eluser]R_Nelson[/eluser]
I need to make an array for a drop down box but i dont want to have to put in all 31 days of a month.

How can i populate the array using a for loop?