count array, create enough variables for number of array items as variables then knowingly call them
Posted on 2012-09-05
am trying to create a function for tables. i figured the best way would be to put my column headers in an array, count the array, set a variable as 0 to use as a counter, and while the array count is greater than the counter, set a variable called "col1" or whatever the counter is. i can then setup datatable structures for the columns.
problem is, how do i then call them??