x112/E1.php

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>E1</title> </head> <body> <?php $woord = "Pipo de Clown"; function controleren($woord) { if (strlen($woord) > 10) { echo substr_replace($woord, "...", 8); } else { echo $woord; } } controleren($woord); ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse