I am trying to retrive a array and display its contents in the page. However, this array will be dynamic, meaning it will have different sizes in each call (there is a function that will handle the display). My question is, how would I make php read the array where it doesnt need to know the number of columns it has? Any technique that I can implement?
Here's a part of the code that I am currently working on.
Expand|Select|Wrap|Line Numbers
- foreach ($rowarray as $row)
- {
- echo $row[0];
- echo $row[1];
- echo $row[2];
- }