PHP Character Limit for Latest Topic
So I’m trying to display the latest topic of a forum on the home page with a link to that forum.
How do I go about limiting the output to 40 characters?
Currently I’m using this code
<td class="num"><?php echo "<a href='"; topic_last_post_link(forum_last_topic_id()); echo "'>"; topic_title(forum_last_topic_id()); echo "</a>"; ?></td>
Any help appreciated.
- You must be logged in to reply to this topic.