l105/klas 5/P2/phpserver/H7/7.1.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 $spelwoord = "tweezitscrapaudtje"; for($i=0;$i < strlen($spelwoord);$i++){ echo substr($spelwoord, $i, 1); echo "-"; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse