x100/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 $controle = woord('Pipo de clown'); echo $controle; function woord($string){ if(strlen($string)>11){ return str_replace() . "..."; } else { return $string; } } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse