Hyvor Developer
  Home   Download   Copy
Code
<?php
$array = [
	['Joe', '[email protected]', 24],
	['Doe', '[email protected]', 25],
	['Dane', '[email protected]', 20]
];

?>

<table>
	<tr>
		<th>Name</th>
		<th>Email</th>
		<th>Age</th>
	</tr>

<?php foreach ($array as $person) : ?>

<tr>
	<?php foreach ($person as $detail) : ?>
		<td><?php echo $detail ?></td>
	<?php endforeach; ?>
</tr>

<?php endforeach; ?>


</table>
Result