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 function langwoord($woord){ if(strlen($woord) > 10){ $woord = str_replace($woord, "..." , 8); return $woord; } else{ return $woord; } } $woord = "ongelovelijk grote orka"; echo langwoord($woord); ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse