Example #1
0
<?php

//toongetallen.php
require_once "GetallenReeksMaker.php";
?>
<!DOCTYPE HTML>
<html>
	<head>
		<meta charset=utf-8>
		<title>Getallenreeks</title>
	</head>
	<body>
		<?php 
$getallenReeksMaker = new GetallenReeksMaker();
$tabel = $getallenReeksMaker->getReeks();
?>
		<table border="1">
			<tbody>
				<tr>
                                    <?php 
foreach ($tabel as $getal) {
    ?>
					<td>
                                            <?php 
    print $getal;
    ?>
					</td>
                                    <?php 
}
?>
				</tr>
Example #2
0
<html>
<head>
<meta charset=utf-8>
<title>Toon Getallen</title>
<style>
	table{
		border: 1px solid black;
	}
	table td{
		border: 1px solid black;
	}
</style>
</head>
<body>
	<?php 
$getReeks = new GetallenReeksMaker();
$tabel = $getReeks->getReeks();
?>
	<table>
		<tbody>
			<tr>
			<?php 
foreach ($tabel as $getal) {
    ?>
					
						<td>
							<?php 
    print $getal;
    ?>
						</td>