I\'m looking for a way to limit a string in php and add on ... at the end if the string was too long.
$res = explode("\n",wordwrap('12345678910', 8, "...\n",true))[0]; // $res will be : "12345678..."