WebbServerProg/www/public/Moment-2/Upg3/foreacharray.php

19 lines
496 B
PHP
Raw Normal View History

2024-08-26 08:40:59 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<?php
$page["head"] = "<h1>Välkommen</h1>";
$page["main"] = "<p>Detta är innehållet på min sida</p>";
$page["footer"] = "<hr><p>Min sidfoot</p>";
foreach($page as $key => $value) {
echo($key . ":" . $value . "<br>");
}
include("../../footer.html");
?>
</body>
</html>