36 lines
674 B
PHP
36 lines
674 B
PHP
<?php include 'common.php'; ?><!DOCTYPE html>
|
|
<html lang="no">
|
|
<head>
|
|
<title><?=title();?></title>
|
|
<link rel="stylesheet" href="index.css">
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
<h1><?=title();?></h1>
|
|
<h4><?=getNavigation();?></h4>
|
|
<h2>Innhold i matrise</h2>
|
|
|
|
<?php
|
|
$matrise[0] = 0;
|
|
$matrise[3] = 3;
|
|
$matrise[5] = 5;
|
|
$matrise[7] = 7;
|
|
$matrise[8] = 8;
|
|
$matrise[15] = 15;
|
|
|
|
echo "<pre>";
|
|
print_r($matrise);
|
|
echo "</pre>";
|
|
|
|
// Foreach løkke som skriver ut hele $matrise'ns innhold.
|
|
foreach($matrise as $key => $val){
|
|
echo '$matrise['.$key.'] = '.$val."<br>\n";
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|