E1.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 $woord = "hallo wereld"; $ant = controle($woord); echo $ant; function controle($woord){ if(strlen($woord)>10){ $w = strstr(0,10,'...'); return $w; } else{ return $woord; } } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse