I have an array of n
elements, of the form:
array (
array ("FOO", "BAR"),
array ("FOO", "BAR"),
array ("FOO", "BAR")...
)
I would like to loop over the array and display them on an HTML table.
feedback
|
The advantage of this approach is that you can prototype with your favorite html editor and plug the commands in. Note that this only works when your server supports short_tags. | |||
feedback
|
Try a foreach loop. Foreach:
| |||
feedback
|
PHP's foreach works very well for this http://www.elated.com/articles/foreach-loop-through-php-arrays/?utm_source=feedburner&utm_medium=feed&utm_campaign=Feed:+ElatedNewStuff+(ELATED+New+Stuff+to+Love) | |||
feedback
|