coupé un texte
truncate ($string, $length = 25, $append="…")
{
$string = trim($string);
if (strlen($string) > $length) {
$string = wordwrap($string, $length);
$string = explode("\n", $string, 2);
$string = $string[0] . $append;
}
return $string;
}