2016-02-18, 09:42 PM
2016-02-19, 02:27 PM
$thread['subject'] = "You see, this is a very very long subject";
if( mb_strlen( $thread['subject'] ) > 25 )
{
$thread['subject'] = mb_substr( $thread['subject'], 0, 35 ) . "...";
}
echo htmlspecialchars( $thread['subject'] );
Is what you're looking for, jordan.