hip1/9.2.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 lengthcheck($string){ $stringlength = strlen($string); if($stringlength > 10){ $string = substr_replace($string, "...", 8, $stringlength-1); } return $string; } ?> </body> </html>

Resultaat

Made by Thijs Aarnoudse