jeff5656 Posted July 26, 2009 Share Posted July 26, 2009 I have this: <?php echo nl2br ($row['comments']);?> Let's say I only want to display the first 50 characters and replace the rest with [...] Is there a way to do this? Then if the user wants to read the whole thing they click and the entire thing could be displayed. Thanks! Quote Link to comment Share on other sites More sharing options...
Coreye Posted July 26, 2009 Share Posted July 26, 2009 I would check out this thread: http://www.phpfreaks.com/forums/index.php?topic=162428. Quote Link to comment Share on other sites More sharing options...
jeff5656 Posted July 26, 2009 Author Share Posted July 26, 2009 Thanks. Sorry I guess I should have searched. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.