Example: If I have a title for a forum post, and only want to display the first 20 letters of the title on the print out of posts.
Please help, I can't find it anywhere.
Moderator: General Moderators
Code: Select all
<?php
// TAKE THE OLD FIELD AND START AT THE FIRST CHARACTER AND JUST GIVE ME THE FIRST 20 AFTER THAT
$field = substr($oldfield, 0,20);
?>