l104/H10/10.4.php

<!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 $vertaling = array ('rood' => 'red', 'blauw' => 'blue', 'oranje' => 'orange', 'groen' => 'green', 'geel' => 'yellow'); foreach ($vertaling as $key => $value){ echo "<div>De vertaling van $key is $value.</div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse