$data=array("data 1","data 2","data 3","data 4","data 5",);
echo "<table>"
foreach($data as $value){
echo "<tr><td>".$value."</td></tr>";
}
echo "</table>";
<table>
<tr><td>data 1</td></tr>
<tr><td>data 2</td></tr>
<tr><td>data 3</td></tr>
<tr><td>data 4</td></tr>
<tr><td>data 5</td></tr>
</table>