Hoofdstuk 10/10.4.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 $woorden['Ik'] ='I' ; $woorden['Hij'] ='He' ; $woorden['Maan'] ='Moon' ; $woorden['Zon'] ='Sun' ; foreach($woorden as $nederlands => $engels){ echo "<div>De vertalening van $engels is in het nederlands $nederlands.<div>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse