DansTonCode.net
quote.smartness() == 42In theory, theory and practice are the same. In practice, they’re not.@author Yoggi Berra
Quote #338
php
@
author 
Anonymous
0
$commentaire = nl2br($e['commentaire']);

if (mb_strlen($e['commentaire']) > 50) {
   $e['commentaire'] = mb_substr($e['commentaire'], 0, 50) . ' (...)';
} else {
   $e['commentaire'] = $e['commentaire'];
}
Code-source en php proposé par Anonymous
 
 0