I am wondering if it will work best to actually write the following for example:
<table>
<?php foreach($array as $key=>$value){ ?>
<tr>
<td><?php echo $key; ?></td>
</tr>
<?php } ?>
</table>
So basically embedding HTML inside foreach loop but without using echo
to print the table tags. Will this work? I know in JSP this works.