l107/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('hond' => 'dog', 'huis' => 'house', 'tafel' => 'table', 'deur' => 'door'); asort($vertaling); foreach($vertaling as $Nl => $En){ echo "De Engelse vertaling van $Nl is $En.</br>"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse